Predict Method for Gaussian Location Mixtures
# S3 method for GLmix
predict(object, newdata, Loss = 2, newsigma = NULL,
...)
fitted object of class "GLmix"
Values at which prediction is desired
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.
sigma values for the predictions
optional arguments to predict
A vector of predictions
The predict method for GLmix
objects will compute means, quantiles or
modes of the posterior according to the Loss
argument. Typically,
newdata
would be passed to predict