This is just an example that I have come across several times, so I don't have any sample data. Running a linear regression model in R:
a.lm = lm(Y ~ x1 + x2)
x1
is a continuous variable. x2
is categorical and has three values e.g. "Low", "Medium" and "High". However the output given by R would be something like:
summary(a.lm)
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.521 0.20 1.446 0.19
x1 -0.61 0.11 1.451 0.17
x2Low -0.78 0.22 -2.34 0.005
x2Medium -0.56 0.45 -2.34 0.005
I understand that R introduces some sort of dummy coding on such factors (x2
being a factor). I'm just wondering, how do I interpret the x2
value "High"? For example, what effect does "High" x2
s have on the response variable in the example given here?
I've seen examples of this elsewhere (e.g. here) but haven't found an explanation I could understand.