View source: R/tab_incidence.R
| tab_incidence | R Documentation | 
Calculate incidence rate and measures of association between strata
tab_incidence(pyears_object, index = 2, ref = 1)
pyears_object | 
 An object generated using survival package function pyears()  | 
index | 
 The position of the index group in the vector pyears_object$event  | 
ref | 
 The position of the reference group in the vector pyears_object$pyears  | 
A tibble with calculations for reference group in row 1 and index group in row 2.
tab_incidence(pyears_male)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.