foruse {yaImpute}R Documentation

Report a complete imputation

Description

Provides a matrix of all observations with the reference observation identification best used to represent it, followed by the distance.

Usage

foruse(object,kth=NULL)

Arguments

object an object created by yai
kth when NULL, the best pick is reported, otherwise the kth neighbor is picked.

Author(s)

Nicholas L. Crookston ncrookston@fs.fed.us
Andrew O. Finley afinley@stat.umn.edu

Examples

require(yaImpute)

data(iris)

# 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

# build a yai object using mahalanobis
mal <- yai(x=x,y=y,method="mahalanobis")

foruse(mal)


[Package yaImpute version 0.0-4 Index]