Calculate number of events per 100 years of exposure
Usage
n_event_100y(
dat,
event_index,
cell_index,
subjectid_var,
treatment_var,
treatment_value,
...
)
Arguments
- dat
data.table. The analysis data set.
- event_index
vector of integers that index the rows in
dat
that match the definition of an 'event'. Matching is done via theINDEX_
column indat
.- cell_index
A vector of integers referencing the rows of
dat
(as specified by theINDEX_
column indat
) that match the population to be analyzed. See the "Endpoint Events" vignette in ramnog for more information.- subjectid_var
character. Name of the subject identifier variable in the data (default is "USUBJID").
- treatment_var
character. Name of the treatment variable in the data.
- treatment_value
character. Value of the treatment variable in the data.
- ...
Optional parameters.