Predict Method for Binomial Mixtures
# S3 method for B2mix
predict(object, newdata, Loss = 2, newk, ...)
A vector of predictions
fitted object of class "B2mix"
Values at which prediction is desired an n by 2 matrix
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 an n by 2 matrix
optional arguments to predict
Jiaying Gu and Roger Koenker
The predict method for B2mix objects will compute posterior means.