computeTestPartialSpearman {rotRPackage}R Documentation

Compute the Partial Spearman Test on 2 data sets.

Description

This ROT function, called from a Test C++ object, is given 2 samples, a vector specifying which variables are to be tested, and optionnaly a test level. It then returns the result of a PS test against the null hypothesis that the in/out variables are not correlated, and the test p-values.

Usage

computeTestPartialSpearman(inData, outData, selection, testLevel = 0.95)

Arguments

inData The 'in' sample. (m-by-n matrix)
outData The 'out' sample (n vector).
selection The list of partial tests (vector containing the indexes of the variables to be tested.
testLevel the test level. (scalar in [0:1])

Value

A list is returned, containing :

testResult The result. 1 means H0 is not rejected. (scalar)
threshold The threshold applied to the p-value when deciding the outcome of the test.
pvalues The test pvalues. (vector)

Author(s)

Pierre-Matthieu Pair, Softia for EDF.

Examples

outData=runif(4)
inData=matrix(runif(40), 4, 10)
selection=c(1,2,3,6,9)
computeTestPartialSpearman(inData,outData,selection)

[Package rotRPackage version 1.4.3 Index]