I have a GLM and my explanatory variables are a factor of 9 levels (X1) and a numeric variable (X2).
If I have to report the formula:
$Y = B_0 + B_1X_1 + B_2X_2$
I have 1 coefficient for the intercept and 1 coefficient for the numeric variable, that's ok, but I have 8 coefficients for the factor, how do I report them? I mean, Bo is one number, B2 is one number, but B1? do I sum the eight numbers? or I report the mean of the 8 numbers, or I have to report the formula with the eight numbers?
?lm
insideR
to see a lot more about them. xlevels tell you how the categorical variable was parameterized; this will be important for interpretation. You might also want to consult a book on regression - one that uses R would be ideal. I liked the first edition of Fox. $\endgroup$