Skip to contents

Lists the parameters of the residual correlation terms a fit takes from the registry of frmtmb_register_autocor() (frmtmb.spatial's sar()): their names as brms names them, the internal parameter each is, and the interval a bounded one lives on. frmtmb.sample reads it for the names of its draws, so that it keeps no list of names of its own. A bounded parameter has one prior slot, its class (lagsar), as core's ar and cosy do: set_prior() refuses its internal name.

Usage

frmtmb_autocor_pars(fit)

Arguments

fit

A frmtmb_fit.

Value

A data frame with one row per parameter: resp, term (the term as written), name (lagsar), coef (the internal parameter, thetaac_1), lower and upper (NA when the term declares no bounds). No rows when the fit has no such term.

Examples

set.seed(1)
V <- 0.5^abs(outer(1:20, 1:20, "-"))
d <- data.frame(x = rnorm(20), y = rnorm(20))
fit <- frm(y ~ x + fcor(V), data = d, data2 = list(V = V))
frmtmb_autocor_pars(fit)   # fcor() has no parameter
#> [1] resp  term  name  coef  lower upper
#> <0 rows> (or 0-length row.names)