Create loglog plot using prediction from Cox model #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR resolves issue #84 by creating a log-log plot using predictions from the Cox model.
Main changes
cox_model_prediction
function to calculate predictions.coh_eff_hr
to return predictions.plot_loglog
to generate the plot based oncox_model_prediction
.This PR includes changes from #93 and #95. The changes specific to this PR start with commit 123d5c4.
Concerning the following comments,
We decided to keep returning both models to give the whole context to the estimation, since the Kaplan-Meier is not used to estimate VE but to construct the Survival Curves.