Class LogRankTest.LogRankResult
java.lang.Object
qupath.lib.analysis.stats.survival.LogRankTest.LogRankResult
- Enclosing class:
LogRankTest
Simple structure used to manage the result of a log rank test.
- Author:
- Pete Bankhead
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the calculated hazard ratio.double
Get the lower bound of the hazard ratio confidence interval.double
Get the upper bound of the hazard ratio confidence interval.double
Get the calculated p-value.Returns a presentable representation of the log-rank test result, including hazard ratio and confidence interval.boolean
isValid()
Returns true if the p-value is not NaN.
-
Method Details
-
getResultString
Returns a presentable representation of the log-rank test result, including hazard ratio and confidence interval.- Returns:
-
isValid
public boolean isValid()Returns true if the p-value is not NaN.- Returns:
-
getPValue
public double getPValue()Get the calculated p-value.- Returns:
-
getHazardRatio
public double getHazardRatio()Get the calculated hazard ratio.- Returns:
-
getHazardRatioLowerConfidence
public double getHazardRatioLowerConfidence()Get the lower bound of the hazard ratio confidence interval.- Returns:
-
getHazardRatioUpperConfidence
public double getHazardRatioUpperConfidence()Get the upper bound of the hazard ratio confidence interval.- Returns:
-