Skip to contents

brms's deprecated accessor. brms has stored the autocorrelation terms in the formula since version 2.11, and autocor() on such a fit returns NULL with a deprecation warning. frmtmb returns the same. The terms are in formula(); autocor_matrix() gives the estimated residual correlation matrix.

Usage

autocor(object, ...)

# S3 method for class 'frmtmb_fit'
autocor(object, resp = NULL, ...)

Arguments

object

A frmtmb_fit.

...

Refused by name: the method takes no other argument.

resp

Response names, checked against the fit's responses.

Value

NULL, with a warning.

Examples

set.seed(1)
d <- expand.grid(week = 1:4, subj = factor(1:10))
d$y <- rnorm(40)
fit <- frm(bf(y ~ 1 + ar(week, subj)), data = d)
suppressWarnings(autocor(fit))
#> NULL