Functions to plot the apc estimates found by apc.fit.model
. The function apc.plot.fit detects the type of
model.design
and model.family
from the fit values and makes appropriate plots.
Depending on the model.design
the plot has up to 9 sub plots.
The type of these can be chosen using type
Model designs of any type.
If type
is "detrend" or "sum.sum"
the canonical age period cohort parametrisation is used. This involves double differences of the
time effects.
The first row of plots are double differences of the time effects.
The next two rows of plots illustrate the representation theorem depending on the choice of type
.
In both cases the sum of the plots add up to the predictor.
- "detrend"
The last row of plots are double sums of double differences detrend so that that each series starts in
zero and ends in zero. The corresponding level and (up to) two linear trends are shown in the middle row of plots.
The linear trends are identified to be 0 for age, period or cohort equal to its smallest value.
See note 2 below.
- "sum.sum"
The last row of plots are double sums of double differences anchored as in the derivation of
Nielsen (2014b).
The corresponding level and (up to) two linear trends are shown in the middle row of plots.
The linear trends are identified to be 0 for the anchoring point U of age, period or cohort as
described in
Nielsen (2014b).
See note 1 below.
Model designs with 2 factors.
If type
is "dif" the canonical two factor parametrisation is used.
This involves single differences.
It is only implemented for model.design
of "AC", "AP", "PC".
It does not apply for model.design
of "APC" because single differences are not identified.
It does not apply for the drift models where model.design
is "Ad", "Pd", "Cd", "t" because it is not clear which time scale the second linear trend should be attributed to.
It is not implemented for model.design
of "tA, "tP", "tC", "1".
The first row of plots are single differences of the time effects.
The next two rows of plots illustrate the representation theorem. In the second row the level is given and in
the third row plots of single sums of single differences are given, normalised to start in zero.
Appearance may vary.
Note, the plots "detrend" and "dif" can give very different appearance of the time effects. The "dif" plots are dominated by
linear trends. They can therefore be more difficult to interpret than the "detrend" plots, where linear trends are set aside.
Standard deviations.
All plots include plots of 1 and 2 standard deviations. The only exception is the intercept in the case
model.family
is "poisson.response" as this uses a multinomial sampling scheme, where the intercept is set to increase
in the asymptotic experiment. The default is to plot standard deviations around zero, so that they represent
a test for zero values of the parameters.
Using the argument sdv.at.zero
the standard deviations can be centered around the estimates. This can give a
very complicated appearance.
Values of coefficients.
These can be found using
apc.identify
.