apc | R Documentation |
Summarize annual and cumulative percent change in risk
apc(x)
## S3 method for class 'surveil'
apc(x)
## S3 method for class 'stand_surveil'
apc(x)
x |
A fitted |
An apc
(list) object containing the following data frames:
A data frame containing a summary of the posterior distribution for period-specific percent change. This contains the posterior mean (apc
) 95 percent credible intervals (lwr
and upr
bounds).
A data frame containing a summary of the posterior distribution for the cumulative percent change in risk at each time period. This contains the posterior mean (cpc
) and 95 percent credible interval (lwr
and upr
bounds).
MCMC samples from the posterior distribution for period percent change
MCMC samples from the posterior distribution for cumulative percent change
plot.apc
print.apc
stan_rw
standardize
data(cancer)
cancer2 <- subset(cancer, grepl("55|60|65|70", Age))
fit <- stan_rw(cancer2, time = Year, group = Age,
iter = 900) # low iter for speed only
x <- apc(fit)
print(x)
plot(x, cumulative = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.