Predict Method for Binomial Mixtures
# S3 method for Bmix
predict(object, newdata, Loss = 2, newk, ...)
A vector of predictions
fitted object of class "Bmix"
Values at which prediction is desired
Loss function used to generate prediction: Currently supported values: 2 to get mean predictions, 1 to get median predictions, 0 to get modal predictions or any tau in (0,1) to get tau-th quantile predictions.
k values (number of trials) for the predictions
optional arguments to predict
Jiaying Gu
The predict method for Bmix
objects will compute means, quantiles or
modes of the posterior according to the Loss
argument. Typically,
newdata
would be passed to predict