summary.cmp.rel {relsurv} | R Documentation |
Summary of the crude probability of death
Description
Returns a list containing the estimated values at required times.
Usage
## S3 method for class 'cmp.rel'
summary(object, times, scale = 365.241,area=FALSE,...)
Arguments
object |
output of the function |
times |
the times at which the output is required. |
scale |
The time scale in which the times are specified. The default value is |
area |
Should area under the curves at time |
... |
Additional arguments, currently not implemented |
Details
The variance is calculated using numerical integration. If the required time is not a time at which the value was estimated, the value at the last time before it is reported. The density of the time points is set by the precision
argument in the cmp.rel
function.
Value
A list of values is returned.
See Also
cmp.rel
Examples
data(slopop)
data(rdata)
#calculate the crude probability of death and summarize it
fit <- cmp.rel(Surv(time,cens)~sex,rmap=list(age=age*365),
ratetable=slopop,data=rdata,tau=3652.41)
summary(fit,c(1,3),scale=365.241)
[Package relsurv version 2.2-9 Index]