| get_pred | R Documentation |
Extracts predicted values from a Stan model fit.
get_pred(stan_fit)
stan_fit |
A |
A summary of the predictions and bar charts of each prediction. If no forecasts were requested, the summary has zero rows and the plot list is empty.
# 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 predicted values from the Stan model fit
get_pred(stan_fit = stan_fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.