Confint() with glm {stats} very, very slow

浪尽此生 提交于 2021-02-07 19:06:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!