Conan: Removes missing values (rows and column to obtain a large...

Description Usage Arguments Value Examples

View source: R/Conan.R

Description

Removes missing values (rows and column alternatively) to obtain a large full matrix

Usage

1
2
3
4
5
6
7
8
Conan(
  X = X,
  nbstep = Inf,
  std = FALSE,
  verbose = FALSE,
  coercing = NULL,
  Xout = TRUE
)

Arguments

X

the dataset (matrix) with missing values

nbstep

number of cutting steps (may remove several rows or columns at each step)

std

(boolean) remove constant covariates

verbose

(boolean) to print the result

coercing

vector of the covariates to keep (names or index)

Xout

(boolean) to export or not the reduced matrix (if not, indices are sufficient)

Value

individus_restants

Index of remaining individuals

variables_restantes

Index of remaining variables

X

If Xout=TRUE, the reduced dataset without missing values

Examples

1
2
3
4
5
6
7
data <- mtcars
datamiss = Terminator(target = data, wrath = 0.05) # 5% of missing values
datamiss
showdata(datamiss) # plot positions of the missing values
reduced = Conan(X = datamiss)
reduced
  

CorReg documentation built on Feb. 20, 2020, 5:07 p.m.