BAMP is a software package to analyze incidence or mortality data on the Lexis diagram, using a Bayesian version of an age-period-cohort model. Such models have been described in, e.g., Berzuini and Clayton (1994), Besag, J.E., P.J. Green, D.M. Higdon and K.L. Mengersen (1995) and Knorr-Held and Rainer (2001). For each pixel in the Lexis diagram (that is for a specific age group and specific period) data must be available on the number of persons under risk (population number) and the number of disease cases (typically cancer incidence or mortality). A hierarchical model is assumed with a binomial model in the first-stage.
As smoothing priors for the age, period and cohort parameters random
walks of first and second order (RW1 or RW2) available. BAMP also allows
to drop one or more of the latent components, for example to drop the
cohort effect and to analyze a age-period model. Additional unstructured
prior distributions are assumed for each pixel in the Lexis diagram.
Note that there is a nonidentifiability in the likelihood of the
APC-model, see Clayton
and Schifflers (1987), which induces some problems in interpreting
the latent effects. The RW1 model is (weakly) identifiable; for the full
RW2 model, effects.apc()/plot.apc() provide a
convention argument that fixes the non-identified linear
trend to a chosen display gauge, making the effect curves interpretable
and reproducible between runs.
BAMP covers a range of models:
The package includes features like
selectModel()).Since version 3.0.0, BAMP uses a Polya-Gamma Gibbs sampler
(method = "pg", the default), a joint data-augmentation
sampler with exact full conditionals and no Metropolis tuning; the
legacy Taylor-expansion sampler remains available via
method = "taylor".
There are some graphical routines available in order to