reg_lm: reg_lm models

Description Usage Arguments See Also Examples

View source: R/lm.R

Description

reg_lm is a method used to fit linear models using the lm package.

Usage

1
reg_lm(X, Y, Ylabel = NULL)

Arguments

X

numerical matrix of dimension n by p regressors

Y

numerical vector of size n containing the response to predict.

Ylabel

a character value containing the name of the Y varaible

See Also

predict.reg_lm

Examples

1
2
3
4
5
6
library(mfe)
data(indicateurs)
X <- indicateurs[, -c(1,2,3)]
Y <- indicateurs[,1]
model <- reg_lm(X = X, Y = Y, Ylabel = colnames(indicateurs)[1])
predict(model, newdata = indicateurs[1,])

alex-conanec/OptFilBov documentation built on May 21, 2019, 9:46 a.m.