varSelection: Variable Selection

Description Usage Arguments Details Value See Also

View source: R/varSelection.R

Description

Returns plot with correlation values among predicted variables.

Usage

1
2
3
4
5
6
7
8
9
varSelection(
  df,
  VarMethod = NULL,
  vifs = NULL,
  cutoff = NULL,
  removeVariable = NULL,
  keep_var = FALSE,
  ...
)

Arguments

df

dataframe-class.

VarMethod

Method used to variable selection. vif uses variance inflation factor based on car package. correlation uses pearson correlation to select random variable using cutoff parameter. both use a two approaches describe above.

vifs

numeric vector. vif uses numeric vector to return variables selection.

cutoff

numeric vector. Person correlation coef. used like threshold.

removeVariable

Variables choosed to remove before running varSelection.

keep_var

logical. If TRUE, all variables will be save in Variables_Selected folder. (default = FALSE).

...

no implemented. Use trace=TRUE to show vif running. default=FALSE.

Details

Variable selection using two approaches: vif and person correlation.

Value

Correlogram plot

See Also

reduce.env


patauchi/sdStaf documentation built on May 10, 2020, 9:34 a.m.