View source: R/utility_functions.R
permut_pca_D.prcomp | R Documentation |
Generates a permuted sample from a PCA that can be used for nonparametric permutation test (see permut_pc_test).
## S3 method for class 'prcomp' permut_pca_D(pca, x, center, .scale, output, pb = NULL, ...)
pca |
Object of class prcomp |
x |
Data passed to the prcomp. |
center |
Logical. Whether pca is conducted on the centered data. |
.scale |
Logical. Whether pca is conducted on the scaled data. |
output |
Character. Determines the output to compute. Possible values are Variance accounted for ("VAF"), the standardized loadings ("s.loadings") or communalities. |
pb |
Object of class "Progress_bar" "R6" generated by progress::progress_bar$new(). Not required. |
... |
Not in use |
This is a helper function internally called by permut_pca_test() to produce a permutation sample of the given output of the prcomp()
Abel Torres Espin
Buja A, Eyuboglu N. Remarks on Parallel Analysis. Multivar Behav Res. 1992 Oct 1;27(4):509–40
Linting M, van Os BJ, Meulman JJ. Statistical Significance of the Contribution of Variables to the PCA solution: An Alternative Permutation Strategy. Psychometrika. 2011 Jul 1;76(3):440–60
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.