View source: R/predict.B2mix.R
predict.B2mix | R Documentation |
Predict Method for Binomial Mixtures
## S3 method for class 'B2mix'
predict(object, newdata, Loss = 2, newk, ...)
object |
fitted object of class "B2mix" |
newdata |
Values at which prediction is desired an n by 2 matrix |
Loss |
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. |
newk |
k values (number of trials) for the predictions an n by 2 matrix |
... |
optional arguments to predict |
The predict method for B2mix objects will compute posterior means.
A vector of predictions
Jiaying Gu and Roger Koenker
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.