plot.notablydifferent: Plots the scaled root mean square differences between...

plot.notablyDifferentR Documentation

Plots the scaled root mean square differences between observed and predicted

Description

Provides a descriptive plot of the Imputation Error Profile for object(s) created by notablyDifferent.

Usage

## S3 method for class 'notablyDifferent'
plot(x,add=FALSE,...)

Arguments

x
  1. an object create by notablyDifferent, or

  2. a (named) list of such objects.

add

set TRUE if you want to add this plot to an existing plot.

...

passed to plot functions.

Author(s)

Nicholas L. Crookston ncrookston.fs@gmail.com

See Also

notablyDistant and yai

Examples

require(yaImpute)

data(iris)

set.seed(12345)

# form some test data
refs=sample(rownames(iris),50)
x <- iris[,1:3]      # Sepal.Length Sepal.Width Petal.Length
y <- iris[refs,4:5]  # Petal.Width Species

mal <- notablyDifferent(yai(x=x,y=y,method="mahalanobis"),vars=colnames(x))
if (require(randomForest))
{
  rf  <- notablyDifferent(yai(x=x,y=y,method="randomForest"),vars=colnames(x))
  plot.notablyDifferent(list(Mahalanobis=mal,randomForest=rf))
}


yaImpute documentation built on Nov. 4, 2022, 1:06 a.m.