Run permutation method to estimate number of PCs

run_permutation(data, d, B = 20)

Arguments

data

Raw data matrix (row-normalized)

d

Vector of singular values

B

Number of permutations

Value

Estimated number of PCs via permutation test