Learn R Programming

REBayes (version 0.63)

predict.GLmix: Predict Method for GLmix

Description

Predict Method for Gaussian Location Mixtures

Usage

"predict"(object, newdata, Loss = 2, ...)

Arguments

object
fitted object of class "GLmix"
newdata
Values at which prediction is desired
Loss
Loss function used to generate prediction
...
optional arguments to predict

Value

A vector of predictions

Details

The predict method for GLmix objects will compute means, medians or modes of the posterior according to the Loss argument. Typically, newdata would be passed to predict