Hello again STATA Friends,
another (minor) questio regarding catgeorical Control variables with numerous categories.
We try to implement nationality and education as Control variables.
There are 19 different countries which we coded 1 to 19 and 21 educational Backgrounds which we coded 1 to 21. The question is how we can include this arbitray ordere in our OLS Regression so it makes sense. Do we have to generate a new dummy variable for each category, respectively each country/ educational Background?
Many thanks and kind regards,
Konstantin
another (minor) questio regarding catgeorical Control variables with numerous categories.
We try to implement nationality and education as Control variables.
There are 19 different countries which we coded 1 to 19 and 21 educational Backgrounds which we coded 1 to 21. The question is how we can include this arbitray ordere in our OLS Regression so it makes sense. Do we have to generate a new dummy variable for each category, respectively each country/ educational Background?
Code:
sum $ylist $xlist gender nationality education download vt Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- accuracy | 578 .3564014 .4793506 0 1 ISVO | 578 .200692 .400865 0 1 CSVO | 578 .5155709 .5001904 0 1 ASVO | 578 .283737 .4512012 0 1 gender | 578 .4463668 .4975457 0 1 -------------+--------------------------------------------------------- nationality | 578 8.769896 3.782748 1 19 education | 578 9.249135 5.994238 1 21 download | 578 .1608997 .3677566 0 1 vt | 578 .5363322 .4991102 0 1
Konstantin
Comment