| get_est | R Documentation |
Extracts parameter estimates from a Stan model fit, including mean, median, standard deviation, and HPD intervals.
get_est(distri, stan_fit)
distri |
Character string specifying the distribution. Options are "poi", "nb", "gp", or "cmp". |
stan_fit |
A |
A summary of the parameter estimates.
# Generate toy data
y_data <- data_simu(n = 60, alpha = 0.5, rho = 0.3, lambda = 5,
mod_type = "zi", distri = "poi")
# Fit a small Stan model (may take > 5s on first compile)
stan_fit <- get_stanfit(mod_type = "zi", distri = "poi", y = y_data)
# Get parameter estimates from the Stan model fit
get_est(distri = "poi", stan_fit = stan_fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.