Fix bug where cause specific mortality was using the cumulative hazard
functions instead of the CIF
This commit is contained in:
parent
c85cebb59f
commit
22944115ee
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ public class CompetingRiskFunctions implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public double calculateEventSpecificMortality(final int event, final double tau){
|
public double calculateEventSpecificMortality(final int event, final double tau){
|
||||||
final MathFunction cif = getCauseSpecificHazardFunction(event);
|
final MathFunction cif = getCumulativeIncidenceFunction(event);
|
||||||
|
|
||||||
double summation = 0.0;
|
double summation = 0.0;
|
||||||
Point previousPoint = null;
|
Point previousPoint = null;
|
||||||
|
|
Loading…
Reference in a new issue