问题
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?
回答1:
Well, for some unknown reason, specifying exp(confint.default(model))
leads to instant resolution of this problem.
来源:https://stackoverflow.com/questions/35629374/confint-with-glm-stats-very-very-slow