50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


biometryassist (version 1.3.0)

predictions: Get Predictions for Statistical Models

Description

A generic function to get predictions for statistical models.

Usage

get_predictions(model.obj, classify, pred.obj = NULL, ...)

# S3 method for default get_predictions(model.obj, ...)

# S3 method for asreml get_predictions(model.obj, classify, pred.obj = NULL, ...)

# S3 method for lm get_predictions(model.obj, classify, ...)

# S3 method for lmerMod get_predictions(model.obj, classify, ...)

# S3 method for lmerModLmerTest get_predictions(model.obj, classify, ...)

Value

A list containing predictions, standard errors, degrees of freedom, response variable label, and aliased names.

Arguments

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.