computeTestPearson {rotRPackage} | R Documentation |
This ROT function, called from a Test C++ object, is given 2 samples, and optionnaly a test level. It then returns the result of a P test against the null hypothesis that the in/out variables are not correlated, and the test p-values.
computeTestPearson(inData, outData, testLevel = 0.95)
inData |
The 'in' sample. (m-by-n matrix) |
outData |
The 'out' sample (n vector). |
testLevel |
the test level. (scalar in [0:1]) |
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) |
Pierre-Matthieu Pair, Softia for EDF.
outData=runif(4) inData=matrix(runif(40), 4, 10) computeTestPearson(inData,outData)