Listwise deletion

Description

Listwise deletion

Usage

1
ld(mat)

Arguments

mat

a matrix or a dataframe

Details

This function implements the listwise deletion on a given dataset, removing all the rows or units containing at least one missing value

Value

The matrix/dataframe in input with the rows/units with missing values removed

Author(s)

Alessandro Barbiero, Giancarlo Manzi, Pier Alda Ferrari

See Also

meanimp, modeimp, medianimp

Examples

1
2
3
4
5
6
7
n<-10
m<-4
mat<-matrix(rnorm(n*m),n,m)
mat[c(3,6),1]<-NA
mat[10,2]<-NA
mat
ld(mat)