View source: R/prevalenceForecast.R
prevalenceForecast | R Documentation |
Given a table for the reference year with mortality rates and prevalences of disability, and a projection table with mortality rates, the function calculates prevalences and disability-free life expectancies.
prevalenceForecast(tabref, tabproj, hypo, includevars = c())
tabref |
a data frame for the reference year, containing variables: year, age, qx (mortality rate) and pix (prevalences) (+ optional: sex) |
tabproj |
a data frame for projection years, containing variables: year, age, and qx (mortality rate) (+optional: sex) |
hypo |
projection hypotheses ('cstDFLE','cstDLE','cstPreval','cstPctDFLE') |
includevars |
a vector of names of variables that must be included in the output table (otherwise, only pix, ex, DFLEx, DLEx and pctDFLEx are kept) |
Projection hypotheses can be one of the following:
'cstDFLE' : disability-free life expectancies constant in all year
'cstDLE' : in-disability life expectancies constant in all year
'cstPreval' : prevalences by age (and sex) constant in all year
'cstPctDFLE' : share of disability-free life expectancy in total life-expectancy constant
'cstPctDLE' : share of in-disability life expectancy in total life-expectancy constant
a data frame with prevalences, DFLE, DLE and share of DFLE in total LE, by year and age (and optionnally sex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.