Description Usage Arguments Value
Assures that case and population matrices match, creates long format data from supplied wide format data, sets values to predict to NA. Needed for the various data representations in the incAnalysis objects. Only data within the prediction and fitting periods are retained.
1 | reformat(cases, population, pred = 2, fit = 15)
|
cases |
data.frame with increasingly ordered years per row and age per column |
population |
data.frame for population data, same structure as cases |
pred |
number of years to predict |
fit |
number of years to fit models with |
list with adjusted long and wide format data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.