How to encode ordinal data before applying linear regression in STATA?
I think the best way is to dummy-encode teacher qualification. So each level of qualification enters the regression with a separate intercept term. Note that dummy-encoding always works against a contrast level. So when &quot;Master degree&quot; is the base-level, you will see the effect of &quot;Bachelor&quot; compared to &quot;Master&quot; etc.
You can dummy-encode in Stata by using the i. prefix, e.g. summarize i.size. In a regression you would use reg y i.x.
See the Stata docs for details.