Description Usage Arguments Author(s) See Also Examples
Provides a descriptive plot of the Imputation Error Profile for object(s)
created by notablyDifferent
.
1 2 |
x |
|
add |
set |
... |
passed to plot functions. |
Nicholas L. Crookston ncrookston.fs@gmail.com
notablyDistant
and yai
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.