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

tab

Sample survival data with additional effects (other than age and time).


Description

An artificial sample of individual observations of survival times along with two additional effects (fictive covariates).

Usage

tab

Format

Object of class data.frame

Details

The data set contains the following named columns of fictive individual survival records: - 'refno' = unique reference numbers; - 'dob' = Julian date corresponding to the date of birth (or origin) of the survival time; - 'dev' = Julian date corresponding to date of event (or end) of the survival time. - 'event' = binary value corresponding to the survival event (1 - fail/death or 0 - survive); - 'cov1' = first additional covariate with 13 levels; - 'cov1' = second additional covariate with 4 levels;

Source

NA

See Also

Examples

# print out the first 10 observations:
tab[1:10,]
# sub-group by a single additional covariate and merge ages above 95:
mdat <- rhdata(tab, covar=c('cov2'), xbreaks=c(40:95, 105), xlabels=c(40:94, '95>'),
  ybreaks=mdy.date(1,1,2000:2007), ylabels=2000:2006, name='M', label='CMI')
mdat

ilc

Lee-Carter Mortality Models using Iterative Fitting Algorithms

v1.0
GPL (>= 2)
Authors
Zoltan Butt, Steven Haberman and Han Lin Shang
Initial release
2014-11-19

We don't support your browser anymore

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