Skip to contents

Data for a Particular Disease

Usage

generate_disease_df(canmod_cdi, disease_name, years = NULL, add_gaps = TRUE)

Arguments

canmod_cdi

Dataset from IIDDA of type CANMOD CDI.

disease_name

Name to match in the nesting_disease column of a CANMOD CDI dataset.

years

If not NULL, a vector of years to keep in the output data.

add_gaps

If TRUE, add records with NA in cases_this_period that correspond to time-periods without any data.