View source: R/sensitivityTest.R
sensitivityTest | R Documentation |
Performs permutation-based test based on sensitivity
sensitivityTest(X, Y, nperm = 200, A, randomization = FALSE,
Y.prob = FALSE, eps = 0.01, scaling = 'auto-scaling',
post.transformation = TRUE, cross.validation = FALSE, ...)
X |
data matrix where columns represent the |
Y |
data matrix where columns represent the two classes and
rows the |
nperm |
number of permutations. Default to 200. |
A |
number of score components |
randomization |
Boolean value. Default to |
Y.prob |
Boolean value. Default |
eps |
Default 0.01. |
scaling |
Type of scaling, one of
|
post.transformation |
Boolean value. |
cross.validation |
Boolean value. Default |
... |
additional arguments related to |
List with the following objects:
raw p-value. It equals NA
if randomization = FALSE
adjusted p-value. It equals NA
if randomization = FALSE
estimated test statistic
Angela Andreella
For the general framework of power analysis for PLS-based methods see:
Andreella, A., Fino, L., Scarpa, B., & Stocchero, M. (2024). Towards a power analysis for PLS-based methods. arXiv preprint https://arxiv.org/abs/2403.10289.
Other test statistics implemented: mccTest
, scoreTest
,
dQ2Test
, specificityTest
,AUCTest
, R2Test
,
FMTest
, F1Test
.
datas <- simulatePilotData(nvar = 30, clus.size = c(5,5),m = 6,nvar_rel = 5,A = 1)
out <- sensitivityTest(X = datas$X, Y = datas$Y, A = 1)
out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.