Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summary.cmp.rel

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 cmp.rel.

times

the times at which the output is required.

scale

The time scale in which the times are specified. The default value is 1, i.e. days.

area

Should area under the curves at time tau be printed out? Default is FALSE.

...

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)

relsurv

Relative Survival

v2.2-3
GPL
Authors
Maja Pohar Perme [aut, cre]
Initial release
2018-11-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.