powered by
The function allows to choose regressors based on multiple criteria as AIC, RMSE etc
regsel_f( model, pval = 0.3, metric = "adjr" & "aic", progress = FALSE, details = FALSE, ... )
is a linear regression model
p value; variables with p value less than pval will enter into the model
pval
statistical metrics used to estimate the best model
Logical; if TRUE, will display variable selection progress.
Logical; if TRUE, will print the regression result at each step.
TRUE
other arguments
Hebbali, Aravind. Published 2020-02-10. olssr package
data(macroKZ) model <- lm(real_gdp ~ imp + exp + poil + eurkzt + tonia_rate, data = macroKZ) regsel_f(model)
Run the code above in your browser using DataLab