You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using kaplan meier estomators and wrote a small function to evaluate the estimator at any timepoint. I have used this to generate statistics or diagnostic plots.
functionevaluate(km_fit::KaplanMeier, t::Real)
time_points = km_fit.events.time
survival = km_fit.survival
if t <= time_points[1]
return1else
id =findlast(x -> x <= t, time_points)
return survival[id]
endend
@ararslan if you think this is a usefull feature i can create pull request. I have not looked at the Nelson Aalen estimator but maybe something similar can be done / in general for the nonparametric estimator type.
The text was updated successfully, but these errors were encountered:
Nice idea! The functionality seems worthwhile to have but I wonder if it would make sense to define it as a method of getindex or even of the object itself. So with km = KaplanMeier(...) and a time t, that would be km[t] or km(t), respectively. What are your thoughts on that?
I have been using kaplan meier estomators and wrote a small function to evaluate the estimator at any timepoint. I have used this to generate statistics or diagnostic plots.
@ararslan if you think this is a usefull feature i can create pull request. I have not looked at the Nelson Aalen estimator but maybe something similar can be done / in general for the nonparametric estimator type.
The text was updated successfully, but these errors were encountered: