get_pars {zoid} | R Documentation |
Extract parameters from fitted model.
Description
Extract estimated parameters from fitted model.
Usage
get_pars(fitted_model, conf_int = 0.05)
Arguments
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 |
Value
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()
Examples
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)
[Package zoid version 1.3.1 Index]