tdeath_other: Predict the age at death from a cause other than lung cancer

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

View source: R/tdeath_other.R

Description

Function to predict the age (years) at which a person may die from a cause other than lung cancer given age, gender and smoking intensity, when relevant.

Usage

1
tdeath_other(u1, u2, status, covs_other)

Arguments

u1, u2

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

status

smoking status ("never", "former", or "current" smoker)

covs_other

3-dimensional vector with values for the covariates (other than smoking status) related to death from other causes, i.e., age (years) at the beginning of the prediction period, gender, smoking intensity expressed as average number of cigarettes smoked per day.

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]]: time interval at which death from other causes may occur

[[5]]: age (years) at death from cause other than lung cancer

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

Note

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

Author(s)

Stavroula A. Chrysanthopoulou

See Also

current.other, former.other, never.other, tdeath_lung

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Predict the age at death from a cause other than lung cancer for a man 52 years old, 
# who have never smoked.
data(current.other, former.other, never.other)
d.other <- tdeath_other(runif(1), runif(1), "never", c(52, "male", NA))
d.other[[1]]
d.other[[2]]
d.other[[3]]
d.other[[4]]
d.other[[5]]
d.other[[6]]

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