Skip to contents

parnames() is brms's deprecated spelling of variables(). brms still answers it, with a deprecation warning, so a ported script runs; this does the same. The generic is defined here and not in frmtmb.sample, which answers it on draws, so that one generic serves both classes.

Usage

parnames(x, ...)

# S3 method for class 'frmtmb_fit'
parnames(x, ...)

Arguments

x

A frmtmb_fit, or a frmtmb_draws when frmtmb.sample is loaded.

...

Refused: an argument the method does not have is an error naming it.

Value

variables(x), with brms's deprecation warning.

Examples

dd <- data.frame(x = rnorm(60))
dd$y <- rnorm(60, 1 + 0.5 * dd$x)
fit <- frm(bf(y ~ x), family = gaussian(), data = dd)
suppressWarnings(parnames(fit))
#> [1] "b_Intercept" "b_x"         "sigma"