predictions | R Documentation |
A generic function to get predictions for statistical models.
get_predictions(model.obj, classify, pred.obj = NULL, ...)
## Default S3 method:
get_predictions(model.obj, ...)
## S3 method for class 'asreml'
get_predictions(model.obj, classify, pred.obj = NULL, ...)
## S3 method for class 'lm'
get_predictions(model.obj, classify, ...)
## S3 method for class 'lmerMod'
get_predictions(model.obj, classify, ...)
## S3 method for class 'lmerModLmerTest'
get_predictions(model.obj, classify, ...)
model.obj |
A model object. Currently supported model objects are asreml, aov/lm, lmerMod/lmerModLmerTest. |
classify |
Name of predictor variable as a string. |
pred.obj |
Optional precomputed prediction object. |
... |
Additional arguments passed to specific methods. |
A list containing predictions, standard errors, degrees of freedom, response variable label, and aliased names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.