Usage
apc.lines( A, P, C,
scale = c("log","ln","rates","inc","RR"),
frame.par = NULL,
drift = 0,
c0 = median( C[,1] ),
a0 = median( A[,1] ),
p0 = c0 + a0,
ci = rep( FALSE, 3 ),
lwd = c(3,1,1),
lty = 1,
col = "black",
type = "l",
knots = FALSE,
... )
Arguments
A
Age effects. A 4-column matrix with columns age, age-specific
rates, lower and upper c.i. If A is of class apc
(see
apc.fit
, P
, C
, c0
,
P
Period effects. Rate-ratios. Same form as for the age-effects.
C
Cohort effects. Rate-ratios. Same form as for the age-effects.
scale
Are effects given on a log-scale? Character variable, one
of "log"
, "ln"
, "rates"
, "inc"
,
"RR"
. If "log"
or "ln"
it is assumed that
effects are log(r
frame.par
2-element vector with the cohort-period offset and
RR multiplicator. This will typically be the result from the call of
apc.frame
. See this for details. drift
The drift parameter to be added to the period effect. If
scale="log"
this is assumed to be on the log-scale, otherwise
it is assumed to be a multiplicative factor per unit of the first
columns of A
, P
c0
The cohort where the drift is assumed to be 0; the subtracted
drift effect is drift*(C[,1]-c0)
.
a0
The age where the drift is assumed to be 0.
p0
The period where the drift is assumed to be 0.
ci
Should confidence interval be drawn. Logical or
character. If character, any occurrence of "a"
or "A"
produces confidence intervals for the age-effect. Similarly for
period and cohort.
lwd
Line widths for estimates, lower and upper confidence limits.
lty
Linetypes for the three effects.
col
Colours for the three effects.
type
What type of lines / points should be used.
knots
Should knots from the model be shown?
...
Further parameters to be transmitted to matlines
used
for plotting the three sets of curves.