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

Description Usage Arguments Value Examples

View source: R/f_00_to_event_table_ef_v2.r

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
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'))

rERR documentation built on May 2, 2019, 11:10 a.m.