sahirbhatnagar/casebase

confidence interval argument not passed to predict function

Closed this issue · 1 comments

I'm not sure if this was on purpose, but ci is not passed to the predict function. If we're going to use the estimate_hazard method for plotting as well, it would be ideal to have the ci (for glm and gam):

withCallingHandlers(pred <- predict(object, newdata, type = "link"),

Yes and no. I created hazard_estimation with the intent of using it for plotHazard, and so that's why I have those arguments. But so far I've only used it for absoluteRisk, and for that I didn't need the confidence intervals, so that's why I'm not passing ci to any other functions. But it should be an easy fix, it shouldn't really break anything.