predict.Pmix: Predict Method for Pmix

Description Usage Arguments Details Value Author(s)

View source: R/predict.Pmix.R

Description

Predict Method for Poisson Mixtures

Usage

1
2
## S3 method for class 'Pmix'
predict(object, newdata, Loss = 2, newexposure = NULL, ...)

Arguments

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 median predictions, 0 to get modal predictions or any tau in (0,1) to get tau-th quantile predictions.

newexposure

exposure values for the predictions

...

optional arguments to predict

Details

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

Value

A vector of predictions

Author(s)

Jiaying Gu


REBayes documentation built on Nov. 26, 2017, 1:03 a.m.