summary.cmp.rel: Summary of the crude probability of death

Description Usage Arguments Details Value See Also Examples

View source: R/cmprel.r

Description

Returns a list containing the estimated values at required times.

Usage

1
2
	## 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

1
2
3
4
5
6
7
8
data(slopop)
data(rdata)
#calculate the crude probability of death
#note that the variable year is in the date format - the number of days since 01.01.1960 and that 
#age must be multiplied by 365 in order to be expressed in days.
fit <- cmp.rel(Surv(time,cens)~sex+ratetable(age=age*365,sex=sex,
      year=year),ratetable=slopop,data=rdata,tau=3652.41)
summary(fit,c(1,3),scale=365.241)

relsurv documentation built on April 5, 2018, 5:07 p.m.