apply_pca | R Documentation |
Fit PCA on the training set and apply the same transformation to the test set. The goal is to use principal components in prediction models as a smaller number of variables instead of all the marker predictors.
apply_pca(split, geno, threshold = 0.95, ...)
split |
An object of class
|
geno |
|
threshold |
|
pc_values A data.frame
containing the principal components
in columns and the names of all lines used in the study is contained in the
first column 'geno_ID'. PCs for the lines present in the test set were
computed based on the transformation done on the training set.
Cathy C. Westhues cathy.jubin@hotmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.