prev_terms: This function adds columns enabling one to calculate...

Description Usage Arguments Value

View source: R/prevalence.R

Description

See the vignette for more details.

Usage

1
prev_terms(dat, event_date = "eventdate", year_fn = standard_years)

Arguments

dat

dataframe of longitudinal data

event_date

character name of the column used to identify clinical events

year_fn

function that determines how year start and end dates are calculated

Value

longitudinal data frame with incidence, prevalence and followup columns


rOpenHealth/rEHR documentation built on March 19, 2018, 7:58 a.m.