Extract Generated Quantities from Model Fit
bmoe-extract-quantities.RdOffline calculations for model artefacts from a bmoe model fit.
Usage
extract_y_posterior_mean(object, new_data)
extract_y_posterior_sd(object)
extract_allocation_probs(object, new_data)
extract_allocation_samples(object, new_data)Arguments
- object
Object that inherits from
bmoe_fit.- new_data
data frame. Similar structure to original
dataargument.Setting
new_data = NULLsignals for the observed data to be used.
Value
All quantities returned as bmoe_array() of varying dimension.
Note that n_s_new denotes the number of rows in new_data or the
observed data when new_data is NULL valued.
extract_y_posterior_mean()dim(.) = c(n_iters, n_chains, n_s_new, n_y, n_k).
extract_y_posterior_sd()dim(.) = c(n_iters, n_chains, n_y, n_k).
extract_allocation_probs()dim(.) = c(n_iters, n_chains, n_s_new, n_k).
extract_allocation_samples()dim(.) = c(n_iters, n_chains, n_s_new).
See also
Allocated versions of these functions.