Last chance! 50% off unlimited learning
Sale ends in
apc.frame
, this
function draws a set of estimates from an APC-fit in the frame. An
optional drift parameter can be added to the period parameters and
subtracted from the cohort and age parameters.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,
... )
apc
(see
apc.fit
, P
, C
, c0
,
"log"
, "ln"
, "rates"
, "inc"
,
"RR"
. If "log"
or "ln"
it is assumed that
effects are log(rapc.frame
. See this for details.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
drift*(C[,1]-c0)
."a"
or "A"
produces confidence intervals for the age-effect. Similarly for
period and cohort.matlines
used
for plotting the three sets of curves.apc.frame, apc.fit