javanpst.tests.multiple.partialCorrelationTest
Class PartialCorrelationTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.multiple.partialCorrelationTest.PartialCorrelationTest
-
public class PartialCorrelationTest extends StatisticalTest
A test based on partial correlation. This procedure can be applied to test independence of 2 variables, X and Y, when the effect of a third variable, Z, is removed. The test statistic is computed by finding the number of concordant (C) and discordant (Q) pairs existing in pairs X-Y, X-Z and Y-Z. Kendall's tau coefficient is also provided. Note: This test is not recommended for more than 20 samples
-
-
Constructor Summary
Constructors Constructor and Description PartialCorrelationTest()Default builderPartialCorrelationTest(DataTable newData)Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclearData()Clears the data stored in the testvoiddoTest()Performs the testdoublegetPValue()Get p-valuedoublegetTau()Get tau statisticjava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testvoidsetData(DataTable newData)Sets data to test-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
PartialCorrelationTest
public PartialCorrelationTest()
Default builder
-
PartialCorrelationTest
public PartialCorrelationTest(DataTable newData)
Builder. Load data to test.- Parameters:
newData- data to test.
-
-
Method Detail
-
clearData
public void clearData()
Clears the data stored in the test- Specified by:
clearDatain classStatisticalTest
-
setData
public void setData(DataTable newData)
Sets data to test- Parameters:
newData- data to test.
-
doTest
public void doTest()
Performs the test- Specified by:
doTestin classStatisticalTest
-
getTau
public double getTau()
Get tau statistic- Returns:
- tau statistic
-
getPValue
public double getPValue()
Get p-value- Returns:
- p-value computed
-
printData
public java.lang.String printData()
Prints the data stored in the test- Specified by:
printDatain classStatisticalTest- Returns:
- Data stored
-
printReport
public java.lang.String printReport()
Prints a report with the results of the test- Specified by:
printReportin classStatisticalTest- Returns:
- Output report
-
-
DMelt 3.0 © DataMelt by jWork.ORG