reformat: Reformats data

Description Usage Arguments Value

View source: R/reformat.R

Description

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.

Usage

1
reformat(cases, population, pred = 2, fit = 15)

Arguments

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

Value

list with adjusted long and wide format data


mknoll/incAnalysis documentation built on Oct. 22, 2020, 9:20 a.m.