stat_lda_prepare: Linear discriminant analysis preparation

Description Usage Arguments

View source: R/stat_lda.R

Description

Removes NAs, constant and collinear columns. Useful to speed up calculations when used with stat_lda0

Usage

1
2
3
4
5
6
7
stat_lda_prepare(
  x,
  f,
  ...,
  constant_below_var = 1e-05,
  collinear_above_cor = 1 - 1e-05
)

Arguments

x

tibble, typically a coe_tbl

f

column specifying grouping factor

...

columns specifying those to use

constant_below_var

numeric threshold under which columns will be considered constant (using stats::var) and dropped (default to 1e-5)

collinear_above_cor

numeric threshold above which columns will be considered collinear (using stats::cor), and dropped (default to 1-1e-5)


MomX/Momstats documentation built on April 8, 2020, 8:04 a.m.