computeMAIE: Mean Absolute Imputation Error

Description Usage Arguments Value Examples

Description

This function computes the mean absolute imputation error for a given complete/true data matrix, imputed data matrix and the data matrix with missing values.

Usage

1
computeMAIE(x.miss, x.impute, x.true)

Arguments

x.miss

a matrix, having missing values

x.impute

an imputed data matrix. Note that it should not contain any missing values.

x.true

complete/true data matrix. Note that it should not contain any missing values.

Value

value of MSIE

Examples

1
2
3
4
5
6
7
  set.seed(3)
  x.true = matrix(rnorm(100),10,10)
  ## create 10% missing values in x
  x.miss = artifNA(x.true, 0.10)
  ## impute using wNNSel method
  x.impute = wNNSel.impute(x.miss)
  computeMAIE(x.miss, x.impute, x.true)

wNNSel documentation built on May 2, 2019, 2:49 p.m.