Skip to content

[Feature] Cox baseline and predicitions #29

@lrnv

Description

@lrnv

@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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions