Learn R Programming

bamp (version 2.1.3)

effects.apc: Effects from Fitted APC Model

Description

Effects from Fitted APC Model

Usage

# S3 method for apc
effects(object, mean = FALSE, quantiles = 0.5, update = FALSE, ...)

Value

List of age, period, cohort effects or apc object including effects (if update=TRUE)

Arguments

object

an apc object

mean

logical. If TRUE, mean effects are computed

quantiles

Scalar or vector of quantiles to compute (only if mean=FALSE)

update

logical. If TRUE, the apc object including the effects is returned

...

Additional arguments will be ignored

Examples

Run this code
if (FALSE) {
data(apc)
model <- bamp(cases, population, age="rw1", period="rw1", cohort="rw1", periods_per_agegroup = 5)
effects(model)
}

Run the code above in your browser using DataLab