Learn R Programming

pcadapt (version 1.0)

pval: Principal Components p-values

Description

pval computes p-values for each principal component or for a set of principal components in the meta-analysis case.

Usage

pval(x, communality_test = FALSE)

Arguments

x
an output of pcadapt containing the loadgins and the estimated standard deviations.
communality_test
a logical value indicating whether a communality test should be performed. Default value set to FALSE.

Examples

Run this code
x <- replicate(1000, rnorm(100))
x <- floor(abs(x))
y <- pcadapt(x,K=3)
pval(y)

Run the code above in your browser using DataLab