Closed sambrilleman closed 6 years ago
The uniroot function should solve:
uniroot
- H(t) - log(U) = 0
instead of:
exp(- H(t)) - U = 0
This will mean adapting the get_survival function to instead be get_negcumhaz instead, and then using log(u) instead of u.
get_survival
get_negcumhaz
log(u)
u
The
uniroot
function should solve:- H(t) - log(U) = 0
instead of:
exp(- H(t)) - U = 0
This will mean adapting the
get_survival
function to instead beget_negcumhaz
instead, and then usinglog(u)
instead ofu
.