-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
@sofia-maitri Now that we have cox models, it would be interesting to extract prediction from them.
This article here : https://missingdatasolutions.rbind.io/2022/12/cox-baseline-hazard/ discusses the matter, first talking about the baseline hazard function (also see previous discussion in #10 ) that you will need for prediction, and then discusses the different types of predictions that exists.
Your goal is to implement functions that do does predictions for each of the prediciton type that exists:
predict(C::Cox, type = :lp)
predict(C::Cox, type = :risk)
predict(C::Cox, type = :expected)
predict(C::Cox, type = :terms)
predict(C::Cox, type = :survival)The first step is probably to implement the baseline hazard that you will need for these prediciton, and use the article to contruct test cases (to ensure that we have the same values outputed).
Tell me if something is not clear enough :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels