|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.inferential.HypothesisTest2Prop
public class HypothesisTest2Prop
A hypothesis test for 2 population proportions.
Constructor Summary | |
---|---|
HypothesisTest2Prop(int n1,
int n2,
int x1,
int x2,
double diff,
double confidenceLevel,
int testType,
boolean pool)
Constructor |
Method Summary | |
---|---|
java.lang.String |
criticalValue()
Returns the critical value corresponding to the given confidence level and type of test. |
double |
pValue()
Returns the p-value. |
double |
testStatistics()
Returns the test statistics. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HypothesisTest2Prop(int n1, int n2, int x1, int x2, double diff, double confidenceLevel, int testType, boolean pool)
n1
- number of trials in population 1n2
- number of trials in population 2x1
- number of events in population 1x2
- number of events in population 2diff
- hypothesized differenceconfidenceLevel
- confidence leveltestType
- test type (as defined in HypothesisTest
)Method Detail |
---|
public double testStatistics()
public java.lang.String criticalValue()
HypothesisTest
public double pValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |