y_pred: Function for predicting values

Description Usage Arguments Value

View source: R/Prediction.R

Description

Function that uses the model parameters estimated and predict y starting from x

Usage

1
y_pred(formula, opt_obj, df)

Arguments

formula

[character] a symbolic description of the model to be fitted (as lm), with -1 if the intercept is not included

opt_obj

[list] output of either the function lm_GD_optimizer or lm_SD_optimizer

df

[numeric] dataset containing the variables of interest

Value

[numeric] vector of the predicted values of the response variable


FrancescoBarile/FJLPackage documentation built on Dec. 17, 2021, 8:29 p.m.