Description Usage Arguments Value Examples
View source: R/f_02_risksets_2.r
Computes the riskset for each case with the relevant variables in the formula and the stratification vars specified in strata() part of the formula. The riskset of a case inculde the subjects that are in the cohort when the case ocurs: so a subject S belongs to the riskset R of the case that have a 'fail' at time ft, if S_entry_time < ft <= S_exit_time.
1 | f_risksets(formula, data, lag, id_name, time_name)
|
formula |
Surv(entry_time,exit_time,outcome)~loglin(loglin_var1,..,loglin_varn)+ |
data |
event format data set than is ouput of the functions f_to_event... |
lag |
latency period |
id_name |
name of variable containing the names of subjects |
time_name |
name of the time variable |
a named list with integer vectors containing the number of rows that are in each the riskset (relevant person-time)
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.