| 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,
  ...
)
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  | 
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.