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

Description Usage Arguments Value Examples

Description

This function organize an input data set ef, same as f_to_event_table_ef_all but with start,stop and outcome from the formula

Usage

1
f_to_event_table_ef_v2(id, start, stop, outcome, data, times, doses, covars)

Arguments

id

name of variable containing the names of subjects

start

name of the variable containing the start time

stop

name of the variable containing the stop time

outcome

name of the variable containging the outcome

data

input data set

times

name of the time variable

doses

name of the dose variable

covars

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

Examples

1
2
3
4
## Not run: f_to_event_table_ef_v2(id='patientids',start='entry_age',stop='exit_age',
                                       outcome='leukaemia',data,times='age',doses='ActMar_med',
                                       covars=c('sex','country','birthcohort'))
## End(Not run)

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