public static class FisherExact.Result extends Object
| Constructor and Description |
|---|
Result(double pValue)
Used to create a result containing only pValues.
|
Result(double pValue,
double[] confidenceInterval,
double estimate,
double oddsRatio,
FisherExact.AlternativeHypothesis alternativeHypothesis)
Used to create a result containing values returned by the R fisher exact method.
|
| Modifier and Type | Method and Description |
|---|---|
FisherExact.AlternativeHypothesis |
getAlternativeHypothesis()
Get the alternative hypothesis used to compute the result.
|
double[] |
getConfidenceInterval()
Get a confidence interval for the odds ratio.
|
double |
getEstimate()
Get an estimate of the odds ratio.
|
double |
getOddsRatio()
Get the odds ratio.
|
double |
getPValue()
Get the p-value returned by the test or
Double.NaN if R was not avaialble. |
boolean |
isValid()
Indicates that R did in fact return the results contained in this object.
|
String |
toString() |
public Result(double pValue)
pValue - The pValue of the result.public Result(double pValue,
double[] confidenceInterval,
double estimate,
double oddsRatio,
FisherExact.AlternativeHypothesis alternativeHypothesis)
pValue - The pValue of the result.confidenceInterval - The confidence interval for the odds ratio.estimate - The estimate of the odds ratiooddsRatio - The odds ratioalternativeHypothesis - The alternative hypothesis used to compute the resultpublic boolean isValid()
public double getPValue()
Double.NaN if R was not avaialble.public double[] getConfidenceInterval()
public double getEstimate()
Double.NaN if the input
was not a 2 by 2 matrix or R was not avaialble.public double getOddsRatio()
Double.NaN if the input
was not a 2 by 2 matrix or R was not avaialble.public FisherExact.AlternativeHypothesis getAlternativeHypothesis()
FisherExact.AlternativeHypothesis.twosided if
the input was not a 2 by 2 matrix or R was not avaialble.Copyright © 2017 Campagne Laboratory. All rights reserved.