tdeath_lung: Predict the age at death from lung cancer

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/tdeath_lung.R

Description

Function to predict the age (years) at which a person may die of lung cancer given gender, age and tumor stage at diagnosis.

Usage

1
tdeath_lung(u1, u2, covs_lung)

Arguments

u1, u2

random numbers from Unif[0,1] required for the simulation

covs_lung

3-dimensional vector with values for the covariates related to death from lung cancer, i.e., tumor stage at diagnosis ("localized", "regional", or "distant"), age (years) at diagnosis, and gender ("male" or "female")

Value

An R-object of class "list" with the following six components:

[[1]]: random number u1 used in the simulation

[[2]]: random number u2 used in the simulation

[[3]]: index number of the time interval

[[4]]: age (years) at death from lung cancer

[[5]]: whether the person died of lung cancer("Yes") or not("No")

[[6]]: R-object of class "list" with the relevant CIF estimates

Note

Components [[1]]-[[3]] and [[6]] are returned for testing purposes only.

Author(s)

Stavroula A. Chrysanthopoulou

See Also

ci.lung, tdeath_other

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Predict the age at death from lung cancer for a woman, diagnosed with 
# "localized" tumor at the age of 89 years
data(ci.lung)
d.lung <- tdeath_lung(runif(1), runif(1), c("localized", 89, "female"))
d.lung[[1]]
d.lung[[2]]
d.lung[[3]]
d.lung[[4]]
d.lung[[5]]
d.lung[[6]]

MILC documentation built on May 2, 2019, 3:45 a.m.