diff --git a/python/wtte/weibull.py b/python/wtte/weibull.py index 21fea76..20151f9 100644 --- a/python/wtte/weibull.py +++ b/python/wtte/weibull.py @@ -168,11 +168,11 @@ class conditional_excess(): def pdf(t, s, a, b): t = np.double(t) - return hazard(t + s, a, b) * np.exp(-cumulative_hazard(t + s, a, b) + cumulative_hazard(t, a, b)) + return hazard(t + s, a, b) * np.exp(-cumulative_hazard(t + s) + cumulative_hazard(t)) def cdf(t, s, a, b): t = np.double(t) - return 1 - np.exp(-cumulative_hazard(t + s, a, b) + cumulative_hazard(t, a, b)) + return 1 - np.exp(-cumulative_hazard(t + s) + cumulative_hazard(t)) def quantile(t, a, b, p): # TODO this is not tested yet.