underModels.reg_lm: Predict method for reg_lm model fits

Description Usage Arguments See Also Examples

View source: R/lm.R

Description

Predicted values based on reg_lm model object.

Usage

1
underModels.reg_lm(model, B = 100, ...)

Arguments

model

'reg_lm' class object

...

further arguments passed to or from other methods.

newdata

matrix containg the regressor of the model that you want to predict the response for.

predict.all

logical value (FALSE by default). If TRUE, a matrix of dimension R by nrow(neawdata) is return, containing several predictions from undermodels generate by underModel.rf

R

numeric value which set the number of under-prediction made when predict.all=TRUE

See Also

reg_lm, underModel.reg_lm

Examples

1
2
3
4
5
6
7
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,])
predict(model, newdata = indicateurs[1,], predict.all = TRUE, R = 10)

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