tab_incidence: Calculate incidence rate and measures of association between...

View source: R/tab_incidence.R

tab_incidenceR Documentation

Calculate incidence rate and measures of association between strata

Description

Calculate incidence rate and measures of association between strata

Usage

tab_incidence(pyears_object, index = 2, ref = 1)

Arguments

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

Value

A tibble with calculations for reference group in row 1 and index group in row 2.

Examples

tab_incidence(pyears_male)

potato-nathan/epiAssist documentation built on April 15, 2022, 11:32 a.m.