File: is.ratetable.Rd

package info (click to toggle)
survival 2.37-7-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,684 kB
  • ctags: 364
  • sloc: asm: 6,453; ansic: 4,857; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
\name{is.ratetable}
\alias{is.ratetable}
\alias{Math.ratetable}
\alias{Ops.ratetable}
\title{
  Verify that an object is of class ratetable. 
}
\description{
The function verifies not only the \code{class} attribute, but the 
structure of the object. 
}
\usage{
is.ratetable(x, verbose=FALSE)
}
\arguments{
\item{x}{
the object to be verified. 
}
\item{verbose}{
if \code{TRUE} and the object is not a ratetable, 
then return a character string describing the way(s) in which \code{x} 
fails to be a proper ratetable object. 
}
}
\value{
returns \code{TRUE} if \code{x} is a ratetable, and \code{FALSE} or a description if it is not. 
}
\details{
Rate tables are used by the \code{pyears} and \code{survexp} functions, and normally 
contain death rates for some population, categorized by age, sex, or other 
variables.  They have a fairly rigid structure, and the \code{verbose} option 
can help in creating a new rate table. 
}
\seealso{
\code{\link{pyears}},  \code{\link{survexp}}.   
}
\examples{
is.ratetable(survexp.us)  # True
is.ratetable(cancer)      # False
}

\keyword{survival}