Fix bug where cause specific mortality was using the cumulative hazard

functions instead of the CIF
This commit is contained in:
Joel Therrien 2018-08-27 13:19:04 -07:00
parent c85cebb59f
commit 22944115ee

View file

@ -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;