pysurvival
pysurvival copied to clipboard
two different predict_risk implementations
For others such as predict_survival, predict_hazard, predict_cdf, implementation in models.py are used in Simulations.
However for predict_risk, in Simulations, instead of using the one in models.py , it uses the one in simulations.py
The two predict_risk ( models.py, simulations.py ), give quite different result.
The one from models.py being sum over cumulative hazard, whereas the one in simulations.py being a sum over weight values (or more complex forms depending on the choice.)
Wonder why it is the case.