predict.Pmix | R Documentation |
Predict Method for Poisson Mixtures
## S3 method for class 'Pmix'
predict(object, newdata, Loss = 2, newexposure = NULL, ...)
object |
fitted object of class "Pmix" |
newdata |
Values at which prediction is desired |
Loss |
Loss function used to generate prediction. Currently supported values: 2 to get mean predictions, 1 to get harmonic mean predictions, 0 to get modal predictions or any tau in (0,1) to get tau-th quantile predictions. The posterior harmonic mean is the Bayes rule for quadratic loss weighted by variances as in Clevenson and Zidek (1975). |
newexposure |
exposure values for the predictions |
... |
optional arguments to predict |
The predict method for Pmix
objects will compute means, quantiles or
modes of the posterior according to the Loss
argument. Typically,
newdata
would be passed to predict
A vector of predictions
Jiaying Gu and Roger Koenker
Clevenson, M. L. and Zidek, J. V. 1975. Simultaneous Estimation of the Means of Independent Poisson Laws, Journal of the American Statistical Association, 70, 698-705.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.