calc_acf | R Documentation |
Calculate residual autocorrelation
calc_acf(x, ..., gr_vars = NULL, cen_var = NULL)
x |
A |
... |
Arguments passed to a |
gr_vars |
Calculate lagged residual/censoring vector within these groups. |
cen_var |
Name of the censoring variable to be (optionally) lagged. |
A tibble
with a Spearman rank correlation coefficient for each residual draw.
res <- data.frame(
.draw = 1,
.residual = c(1:9, -1e2),
location = "a"
)
calc_acf(res, gr_vars = c(".draw", "location"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.