Description Usage Arguments Value Examples
View source: R/f_03_to_model_data.r
Transform the data set in a closed form n_row | id_name | n_pe | entry_name | exit_name | outcome | time |
linear_covariates | loglinear_covariates.
Expand if a variable is categorical to pure logical n_categories variables (excluding the reference category)
1 | f_to_model_data(formula, data, id_name, time_name)
|
formula |
Surv(entry_time,exit_time,outcome)~loglin(loglin_var1,..,loglin_varn)+ |
data |
data set |
id_name |
name of variable containing the names of subjects |
time_name |
name of the time variable |
data set described below
1 | f_to_model_data(formula,data,id_name='patientids',time_name='time')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.