NA_rm_for_glm: Removing of all NAs and change the dataframe if too many rows...

Description Usage Arguments

View source: R/dataprep.R

Description

Removing of all NAs and change the dataframe if too many rows are deleted

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
NA_rm_for_glm(
  DF,
  y = colnames(DF)[1],
  EPV = 0,
  min_explicatives = 0.1 * (ncol(DF)),
  floor_pval = 1,
  verbose = TRUE,
  method_NA = c("lessNA", "significance"),
  keep = FALSE,
  kNN = NULL,
  rf = NULL,
  median = NULL,
  mean = NULL,
  NA_as_level = NULL
)

Arguments

DF

: the dataframe

y

: the variable to explain

EPV

: the event-per-variable threeshold.

keep

: the variable(s) to keep whathever are its significance and number of NA

imputed_variables

: variables to be imputed if imputed method is selected in 'method_NA'.


TanguyPerennec/Autostats documentation built on Dec. 13, 2020, 10:43 a.m.