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

View source: R/dataprep.R

NA_rm_for_glmR Documentation

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

Description

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

Usage

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/AutostatR documentation built on Oct. 31, 2022, 7:57 a.m.