f_to_event_table_ef_all: Data transformation: Event format -> Event format required...

Description Usage Arguments Value Examples

Description

This function organize an input data set ef (event format), 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 and being the 0-row the exit conditions: exit time, exit dose and the outcome. Also creates the cumulated dose.

Usage

1
2
f_to_event_table_ef_all(formula, data, id_name, dose_name, time_name,
  covars_names)

Arguments

formula

Surv(entry_time,exit_time,outcome)~loglin(loglin_var1,..,loglin_varn)+
(lin_var1,..,lin_varm)+strata(strat_var1,...strat_varp)

data

input data set - event format data set

id_name

name of variable containing the names of subjects

dose_name

name of the dose variable

time_name

name of the time variable

covars_names

names of the covars required later in the model

Value

The data set with the event-row format, including the event of exit of the cohort as a row where the outcome is set

Examples

1
2
3
4
## Not run:  f_to_event_table_ef_all(formula,data,id_name='patientids',
                                            dose_name='dose',time_name='time',
                                            covars=c('sex','country','birthcohort'))
## End(Not run)

fbr600/rERR documentation built on May 7, 2019, 9:36 a.m.