From 22944115ee6a0639d5c551469717e70b92bd5e8d Mon Sep 17 00:00:00 2001 From: Joel Therrien Date: Mon, 27 Aug 2018 13:19:04 -0700 Subject: [PATCH] Fix bug where cause specific mortality was using the cumulative hazard functions instead of the CIF --- .../responses/competingrisk/CompetingRiskFunctions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ca/joeltherrien/randomforest/responses/competingrisk/CompetingRiskFunctions.java b/src/main/java/ca/joeltherrien/randomforest/responses/competingrisk/CompetingRiskFunctions.java index e75ffd4..2e6baf9 100644 --- a/src/main/java/ca/joeltherrien/randomforest/responses/competingrisk/CompetingRiskFunctions.java +++ b/src/main/java/ca/joeltherrien/randomforest/responses/competingrisk/CompetingRiskFunctions.java @@ -26,7 +26,7 @@ public class CompetingRiskFunctions implements Serializable { } public double calculateEventSpecificMortality(final int event, final double tau){ - final MathFunction cif = getCauseSpecificHazardFunction(event); + final MathFunction cif = getCumulativeIncidenceFunction(event); double summation = 0.0; Point previousPoint = null;