| regsel_f | R Documentation |
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, ... ) ## S3 method for class 'regsel_f' plot(x, model = NA, print_plot = TRUE, ...)
model |
is a linear regression model |
pval |
p value; variables with p value less than |
metric |
statistical metrics used to estimate the best model |
progress |
Logical; if TRUE, will display variable selection progress. |
details |
Logical; if |
... |
other arguments |
x |
An object. |
print_plot |
logical; if |
Hebbali, Aravind. Published 2020-02-10. olssr package
model <- lm(real_gdp ~ imp + exp + poil + eurkzt + tonia_rate, data = macroKZ) regsel_f(model)