rename_pars | R Documentation |
Rename parameters within the stanfit
object
after model fitting to ensure reasonable parameter names. This function is
usually called automatically by brm
and users will rarely be
required to call it themselves.
rename_pars(x)
x |
A |
Function rename_pars
is a deprecated alias of rename_pars
.
A brmsfit
object with adjusted parameter names.
## Not run:
# fit a model manually via rstan
scode <- stancode(count ~ Trt, data = epilepsy)
sdata <- standata(count ~ Trt, data = epilepsy)
stanfit <- rstan::stan(model_code = scode, data = sdata)
# feed the Stan model back into brms
fit <- brm(count ~ Trt, data = epilepsy, empty = TRUE)
fit$fit <- stanfit
fit <- rename_pars(fit)
summary(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.