Hi there
Sorry this maybe more of a stats question than a Stata question, but my understanding of adding a cluster option to a regression model is that the standard error will increase which will widen the confidence intervals but I'm surprised to see that, in my case, adding a cluster option actually narrows the confidence intervals:
glm count i.exposure i.covar1 i.covar2, family(nbinomial) link(log) eform
glm count i.exposure i.covar1 i.covar2, family(nbinomial) link(log) eform cluster(id)
Number of observations = 4,069,451
Number of unique IDs = 3,423,928
I'd be very grateful to anyone who might be able to offer some insight as to what is happening here.
With thanks
Sorry this maybe more of a stats question than a Stata question, but my understanding of adding a cluster option to a regression model is that the standard error will increase which will widen the confidence intervals but I'm surprised to see that, in my case, adding a cluster option actually narrows the confidence intervals:
glm count i.exposure i.covar1 i.covar2, family(nbinomial) link(log) eform
glm count i.exposure i.covar1 i.covar2, family(nbinomial) link(log) eform cluster(id)
Number of observations = 4,069,451
Number of unique IDs = 3,423,928
I'd be very grateful to anyone who might be able to offer some insight as to what is happening here.
With thanks
Comment