Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 710
user4575913 Avatar asked Feb 25 '16 13:02

user4575913


People also ask

What does Confint () do in R?

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.

What is the difference between Confint and Confint default?

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.

What is Wald confidence interval?

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.


1 Answers

Well, for some unknown reason, specifying exp(confint.default(model)) leads to instant resolution of this problem.

like image 102
user4575913 Avatar answered Sep 22 '22 12:09

user4575913