public class OneWayANOVA extends HypothesisTest
The R equivalent function is aov
.
Constructor and Description |
---|
OneWayANOVA(double[]... samples)
Perform the one-way ANOVA test to test for the equality of the means of several groups.
|
Modifier and Type | Method and Description |
---|---|
double |
df1()
Get the first degree of freedom.
|
double |
df2()
Get the second degree of freedom.
|
String |
getAlternativeHypothesis()
Get the description of the alternative hypothesis.
|
String |
getNullHypothesis()
Get a description of the null hypothesis.
|
double |
pValue()
Get the p-value for the test statistics.
|
double |
statistics()
Get the test statistics.
|
isNullRejected, nGroups, nObs, oneSidedPvalue
public OneWayANOVA(double[]... samples)
samples
- the samplespublic String getNullHypothesis()
HypothesisTest
getNullHypothesis
in class HypothesisTest
public String getAlternativeHypothesis()
HypothesisTest
getAlternativeHypothesis
in class HypothesisTest
public double df1()
public double df2()
public double statistics()
HypothesisTest
statistics
in class HypothesisTest
public double pValue()
HypothesisTest
pValue
in class HypothesisTest
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.