bestVars: Computes the number of _best_ X-variables

Description Usage Arguments Value Author(s) See Also Examples

Description

The number of best variables is estimated by finding an apparent inflection point in the relationship between the generalized root mean square distance (see grmsd and the number of X-variables.

Usage

1
bestVars(obj,nbest=NULL)

Arguments

obj

an object create by varSelection

nbest

number of variables designated as the best; if null the number is estimated

Value

An character vector of variable names in decreasing order of importance.

Author(s)

Nicholas L. Crookston ncrookston.fs@gmail.com

See Also

varSelection

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
require(yaImpute)

data(iris)
set.seed(12345)

x <- iris[,1:2]  # Sepal.Length Sepal.Width 
y <- iris[,3:4]  # Petal.Length Petal.Width 

vsel <- varSelection(x=x,y=y,nboot=5,useParallel=FALSE)

bestVars(vsel)


Search within the yaImpute package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.