RunAllPossibleRegression: RunAllPossibleRegression

Description Usage Arguments

View source: R/RunAllPossibleRegression.R

Description

Runs "all possible regression" analysis using the olsrr::ols_step_best_subset() function, plots the "relevant" measures and saves to disk.

Usage

1
2
3
4
5
6
7
RunAllPossibleRegression(
  fit,
  performance.measures = c("adjr", "aic", "sbic", "cp"),
  pretty.labels = c("Adjusted R-squared", "AIC", "BIC", "C(p)"),
  dir = "./",
  save.plot = TRUE
)

Arguments

fit

lm object. Full model fit to the data. No default.

performance.measures

Character vector. Performance measures of candidate model to include in the performance table. Defaults to c("adjr", "aic", "sbic", "cp").

pretty.labels

Character vector. Column names for performance measures in performance table. Defaults to c("Adjusted R-squared", "AIC", "BIC", "C(p)")

dir

Character vector of lenght 1. Directory in which to store the plot. Ignored if save.plot is FALSE. Defaults to "./"

save.plot

Logical vector of length 1. If TRUE then the plot is saved to disk. Defaults to TRUE


itslwg/regone documentation built on Oct. 14, 2021, 12:52 a.m.