Skip to content
Prev 202064 / 398503 Next

How to force regression coeffs for some values in a categorical variable

I worry whether you understand what is happening when you lump all the  
"unwanted levels" into a reference level. Be sure to watch the  
intercept as you compare models. It will be some sort of adjusted mean  
for whatever cases are in the reference levels of that and teh  
reference levels of any other factor. It will change as you add or  
remove levels from that status. Just because you get no coefficient  
does not mean those data points are not affecting the predictions you  
will make from the model. The prediction for cases in those reference  
levels will NOT be 0. Nor will the predicted differences between that  
group and others be zero.