predict
method for class "mmer"
.
# S3 method for mmer
predict(object, classify=NULL,
RtermsToForce=NULL,
FtermsToForce=NULL,
…)
an object of class "mmer"
an optional character string with the variables that define the margins of the multiway table to be predicted (see Details).
numeric vector to force the random effects to be used instead of the ones defined in the classify argument.
numeric vector to force the fixed effects to be used instead of the ones defined in the classify argument.
Further arguments to be passed
The data frame used for obtaining the predictions, jointly with the predicted values and the corresponding standard errors.
This function allows to produce predictions, either specifying: (1) the data frame on which to obtain the predictions (argument newdata), or (2) those variables that define the margins of the multiway table to be predicted (argument classify). In the first case, all fixed and random components need to be present in the data frame. In the second case, predictions are obtained for each combination of values of the specified variables that is present in the data set used to fit the model.
Welham, S., Cullis, B., Gogel, B., Gilmour, A., and Thompson, R. (2004). Prediction in linear mixed models. Australian and New Zealand Journal of Statistics, 46, 325 - 347.