permut_pca_D.prcomp: Permutation PCA sample permD prcomp

View source: R/utility_functions.R

permut_pca_D.prcompR Documentation

Permutation PCA sample permD prcomp

Description

Generates a permuted sample from a PCA that can be used for nonparametric permutation test (see permut_pc_test).

Usage

## S3 method for class 'prcomp'
permut_pca_D(pca, x, center, .scale, output, pb = NULL, ...)

Arguments

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

Details

This is a helper function internally called by permut_pca_test() to produce a permutation sample of the given output of the prcomp()

Author(s)

Abel Torres Espin

References

  1. Buja A, Eyuboglu N. Remarks on Parallel Analysis. Multivar Behav Res. 1992 Oct 1;27(4):509–40

  2. 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


ucsf-ferguson-lab/syndRomics documentation built on June 26, 2022, 5:36 p.m.