View source: R/plsc_inference.R
| perm_test.plsc | R Documentation |
Uses row-wise permutation of the Y block to assess the significance of each
latent variable (LV) in a fitted plsc model. The test statistic is the
singular value of the cross-covariance matrix for each LV.
## S3 method for class 'plsc'
perm_test(
x,
X,
Y,
nperm = 1000,
comps = ncomp(x),
stepwise = TRUE,
shuffle_fun = NULL,
parallel = FALSE,
alternative = c("greater", "less", "two.sided"),
alpha = 0.05,
...
)
x |
A fitted |
X |
Original X block used to fit |
Y |
Original Y block used to fit |
nperm |
Number of permutations to perform (default 1000). |
comps |
Number of components (LVs) to test. Defaults to |
stepwise |
Logical; if TRUE (default), perform sequential testing with deflation. |
shuffle_fun |
Optional function to permute Y; defaults to shuffling rows. |
parallel |
Logical; if TRUE, use parallel processing via future.apply. |
alternative |
Character string for the alternative hypothesis: "greater" (default), "less", or "two.sided". |
alpha |
Significance level used to report |
... |
Additional arguments (currently unused). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.