Skip to content
Prev 2383 / 7420 Next

glm coefficients

I am following this and have two other questions.

1) The first is how to get the correct standard errors for each of the coefficients?  In the example offered, asking for summary(model) will yield, in part, the following (please understand my output will differ given the data generated is random):

Coefficients:
             Estimate Std. Error t value Pr(>|t|)
(Intercept)    0.7988     0.5801   1.377    0.227
size          -0.5437     0.7997  -0.680    0.527
CatVar1       -2.0183     1.0573  -1.909    0.115
size:CatVar1  -0.5047     1.2368  -0.408    0.700


To get the intercept for the CatVar1=1 line, one needs 0.7988-(-2.0183) = 2.18.  Is the standard error for this estimate 1.0573?


2) Suppose there were three or more categorical variables.  How can one perform pairwise comparisons between coefficients AND get the associated SE of the difference?  It seems that this would be quite desirable, yet I cannot find a package for this. I am looking for a method similar to the SAS implementation of the ESTIMATE statement.