create_integration_matrix_agetime | R Documentation |
Create a matrix to estimate the cumulative hazard rate needed for survival analysis by age and time. The option to include an additional stratification variable is also available, creating a 3D hazard function.
create_integration_matrix_agetime(
dat,
subset = NULL,
time1 = "time1",
time2 = "time2",
timecaps = c(1, Inf),
Ntime = NULL,
age = "age",
Nage = NULL,
strat = NULL,
Nstrat = NULL
)
time1 |
Variable name for time of birth, Default: "time1" |
time2 |
Variable name for time circumcised or censored, Default: "time2" |
age |
|
strat |
Variable to stratify by in using a 3D hazard function, Default: NULL |
Matrix for selecting instantaneous hazard rate.
sparseMatrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.