Converts the Cumulative Distribution Function (CDF) of ever-smoking into the Probability Density Function (PDF), which represents the probability of initiating smoking at a specific age.
Usage
p_dense(
data,
cum_func_var,
strat_vars = c("cohort", "sex", "imd_quintile"),
lowest_year = 2003,
max_year = 2100
)