predict {mvMORPH} | R Documentation |
Predictions from (multivariate) gls or ols model fit
Description
Returns the prediction(s) of a linear model of class 'mvgls'.
Usage
## S3 method for class 'mvgls'
predict(object, newdata, ...)
Arguments
object |
an object of class 'mvgls' obtained from a |
newdata |
a dataframe with new observation(s). The column names must match the names of the predictors in the model fit object. The type (e.g. factors, numeric) must also match the type of the predictors in the model fit object. Note: the fitted values are simply returned if "newdata" is not provided. |
... |
further arguments for this generic function. For models fit by |
Value
A matrix with the predictions for the linear model fitted by mvgls
or mvols
.
Author(s)
J. Clavel
See Also
fitted.mvgls
vcov.mvgls
residuals.mvgls
coef.mvgls
mvgls
mvols