Prediction for age-period-cohort models

predict_apc(object, periods = 0, population = NULL,
  quantiles = c(0.05, 0.5, 0.95), update = FALSE)

Arguments

object

apc object

periods

number of periods to predict

population

matrix of (predicted) population, if NULL, population data from original bamp call will be used

quantiles

vector of quantiles to compute

update

boolean. If TRUE, object will be returned with results added to the object

Value

list with quantiles of predicted probabilities (pr), predicted cases (cases) and predicted cases per period (cases_period) and a list samples with MCMC samples of pr, cases and cases_period. If update=TRUE, the apc object will be returned with this list (predicted) added.