I have a problem with calculating OR confidence intervals from a glm in the latest version of R, but I have not had this issue before. With any glm where family="binomial"
, no matter how simple the model is, it will easily allow me to extract the summary and exp(coef(model)), however when I try to extract the confint()
or exp(confint(model))
, the "Waiting for profiling to be done..." message is displayed and nothing happens (I've waited up to 10 mins then cancelled the procedure, this usually takes only seconds on my machine). Any ideas what might be tripping this function up? I've tried it on multiple datasets
and variables, with the same result. Any ideas why it is taking so long/failing to finish?
confint is a generic function in package base . These confint methods calls the appropriate profile method, then finds the confidence intervals by interpolation in the profile traces. If the profile object is already available it should be used as the main argument rather than the fitted model object itself.
Details. confint is a generic function. The default method assumes normality, and needs suitable coef and vcov methods to be available. The default method can be called directly for comparison with other methods.
The Wald interval is the most basic confidence interval for proportions. Wald interval relies a lot on normal approximation assumption of binomial distribution and there are no modifications or corrections that are applied.
Well, for some unknown reason, specifying exp(confint.default(model))
leads to instant resolution of this problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With