Description Usage Arguments Value Examples
View source: R/f_01_to_event_table_wf_all.r
This function organize an input data set wf (wide format, same input as in Epicrue Peanuts), to the required ef data set for the model. It appends an index of person event 1,2..n,0 if a subject has n doses (or grouped doses), and being the 0-row the exit conditions: exit time, exit dose and the outcome. Also creates the cumulated dose.
1 | f_to_event_table_wf_all(formula, data, id_name, doses, times, covars)
|
formula |
Surv(entry_time,exit_time,outcome)~loglin(loglin_var1,..,loglin_varn)+ |
data |
input data set - event format data set |
id_name |
name of variable containing the names of subjects |
doses |
sub data set of grouped doses |
times |
sub data set of times relatives to doses |
covars |
sub data set of the covars that will be involved in the model |
The data set with the event-row format, including the event of exit of the cohort
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.