predict.mlkit.lm.fit: Model Predictions for Linear Regression Model

Description Usage Arguments Value

View source: R/predict.mlkit.lm.fit.R

Description

Custom implementation for prediction using model fits obtained resulting from linear regression models in the mlkit package.

Usage

1
2
## S3 method for class 'mlkit.lm.fit'
predict(object, newdata = NULL, ...)

Arguments

object

mlkit.lm.fit object generated by a call to a linear regression method in the mlkit package that is used for prediction.

newdata

optional matrix of explanatory variables to use in prediction. Default is NULL in which case the in-sample predictions are returned.

...

additional arguments affecting the predictions produced.

Value

Atomic vector containing predictions based on the given model and explanatory variables.


Accelerytics/mlkit documentation built on Dec. 31, 2020, 9:46 a.m.