0
$\begingroup$

When I fit a linear model in R with categorical variables of X (I have 3 levels). As R works it does not include one of these levels in the model output to avoid overfitting the model. But I need to know one of these levels estimated values how can I do this?

$\endgroup$
2
  • $\begingroup$ It would be helpful to show us your output. This isn't really a question about R, it's a question about baseline or reference levels and how to interpret the regression output - which is on-topic here. I suspected this to be a duplicate of an existing question ... but if it is I can't find it. This question ought to illustrate the general idea when there are two categorical variables, or this question is closer to a duplicate but doesn't show a regression output. $\endgroup$
    – Silverfish
    Commented Oct 29, 2015 at 22:30
  • $\begingroup$ You can calculate them easily once you understand reference level coding or you can fit the model with level means coding. See the linked thread. $\endgroup$ Commented Oct 29, 2015 at 22:52

0

Browse other questions tagged or ask your own question.