Prediction for Bayesian Mixture of Expert Fits
predict.bmoe_fit.RdBoth response and component membership can be generated.
Usage
# S3 method for bmoe_fit
predict(object, ..., new_data, type, summarise = TRUE)Arguments
- object
Object that inherits from
bmoe_fit.- ...
Extra arguments ignored.
- new_data
data frame. Similar structure to original
dataargument.Setting
new_data = NULLsignals for the observed data to be used.- type
choice. Determines output type.
- summarise
logical. When
TRUE, any list column output is summarised.
Value
type = "response". Tibble output with a list column per response.type = "class". Component membership,z, is returned as a list column.type = "raw". Abmoe_arrayMCMC object is returned.