pred.linreg: Predict Response using 'linreg' Model

Description Usage Arguments Value

View source: R/pred_linreg.R

Description

An S3 function to return modelled response values from observations of independent variables using a linreg model

Usage

1
2
## S3 method for class 'linreg'
pred(linreg_obj, data = NULL)

Arguments

linreg_obj

an object of class linreg

data

set to NULL by default, returning values fitted by the model on the training dataset; when a non-trivial dataset is provided as input that is similar to the training dataset, the function returns predicted response values for the input

Value

a vector containing the modelled response values


shana299/tryy documentation built on Dec. 23, 2021, 1:19 a.m.