get_pars | R Documentation |
Extract estimated parameters from fitted model.
get_pars(fitted_model, conf_int = 0.05)
fitted_model |
The fitted model returned as an rstan object from the call to zoid |
conf_int |
Parameter controlling confidence intervals calculated, defaults to 0.05 for 95% intervals |
A list containing the posterior summaries of estimated parameters. At minimum,
this will include p
(the estimated proportions) and betas
(the predicted values in
transformed space). For models with overdispersion, an extra
element phi
will also be returned, summarizing overdispersion. For models with random
intercepts, estimates of the group level effects will also be returned as zetas
(again,
in transformed space). For predictions
in normal space, see get_fitted()
y <- matrix(c(3.77, 6.63, 2.60, 0.9, 1.44, 0.66, 2.10, 3.57, 1.33),
nrow = 3, byrow = TRUE
)
# fit a model with no covariates
fit <- fit_zoid(data_matrix = y)
p_hat <- get_pars(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.