I have a linear model with several predictors (only main effects). One of them is a catagorical variable X with 4 levels (A...D). One level (A) is used as the reference level, so the model gives coefficients for the other levels that refer to the differences between these levels versus the reference (B-A, C-A and D-A).

Given I have the standard errors of these coefficients and the numbers of each level of X, and I also have the total number of coefficinets in the model as well as R², SEy, SSreg and SSres: how can I calculate the SE for the other pair-wise differences (B-C, B-D, C-D)?

Example: As a test I set up a model with 5 coefs plus intercept and get

Coef "B" "C" "D"

SE 0.323 0.302 0.233

N 7 16 12

total N = 55 (so there are 20 values for level "A")

R² = 0.9796

SEy = 0.0752

SSreg = 6.809

SSres = 0.1415

Thus, the SE of C-A is 0.302. How could I use the above results to get the SE of C-B?

If I calculate the same model on the same data but with "B" as a reference I get

Coef "A" "C" "D"

SE 0.323 0.267 0.301

N 20 16 12

So this way I get the SE of C-B as 0.267. But if I don't have the possibility to re-calculate the model, if I only have the results for a reference level being "A", how can I get this SE of C-B?

More Jochen Wilhelm's questions See All
Similar questions and discussions