Description Usage Arguments Details Value Author(s) References See Also Examples
A function to cross-validate the Group Nearest Shrunken Centroid Classifier produced by gnsc.train
1 |
fit |
The result of a call to gnsc.train |
x |
The test data matrix (variables in the rows, samples in the columns). |
y |
The test class labels for samples, must have the same length as the column length of |
z |
The test class labels for variables, must have the same length as the row length of |
nfold |
Number of cross-validation folds. The default value is the smallest class size. |
folds |
The fold lables for each sample, must have the same length as |
verbose |
If |
gnsc.cv carries out a cross-validation for Group Nearest Shrunken Centroid Classifier.
An object with S3 class "gnsccv" is returned:
lambda |
A vector of the thresholds tried in the shrinkage |
nlambda |
The number of thresholds tried in the shrinkage |
lambda.min |
The index of the threshold which achieves the lowest cross-validation error |
errors |
The number of cross-validation errors for each threshold value |
nonzero |
The number of variables that survived the thresholding |
Thresh.mat |
A list of estimated |
Fang Han, Han Liu
Maintainer: Fang Han<fhan@jhsph.edu>
1.Juemin Yang, Fang Han, Rafa Irizarry, and Han Liu. Gene Context Analysis on Large-scale Genomic Data. Technical Report, Johns Hopkins University, 2012
2.Robert Tibshirani, Trevor Hastie, Balasubramanian Narasimhan, and Gilbert Chu. Diagnosis of multiple cancer types by shrunken centroids of gene expression PNAS, 99: 6567-6572.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.