I have the following dataset:
In my original dataset , I have created propensity weights. And I run the following commands:
svyset[pw= pwt_new]
svy:regress READM_30_AMI pos_overall fin_ehr_scr i.ownership i.bedcode teach_status mhsmemb i.rural_urban_codes Sigma_mkt_shr_sq percapita_inc_2013 mcd_pct mcr_pct
However, in the output, rural_urban_codes appears only once. It has 3 categories in the data and I expect all three categories to show in the results. As you can see, I have created dummy variables by including and i. before the variable name. Despite doing that, the output does not show results for all three categories. Please respond and thank you!
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long MCRNUM double(READM_30_AMI pos_overall) float(fin_ehr_scr ownership bedcode teach_status) byte mhsmemb float(rural_urban_codes Sigma_mkt_shr_sq) double percapita_inc_2013 float(mcd_pct mcr_pct) double siteid 30014 16.7 .6236115758388308 . 0 1 1 1 0 .06709579 40030 21.34023 49.66715 341330 30038 17.6 .6049491002900073 . 0 2 0 1 0 .26497364 40030 22.755203 46.3112 183 30087 16 .6614742692441345 . 0 2 0 1 0 .26497364 40030 23.122984 45.58777 184 30092 16.2 .6025510664834064 . 0 1 1 1 0 .06709579 40030 21.340525 49.66676 403730 30123 16.2 .7163663401606037 . 0 0 1 1 0 .26497364 40030 25.094004 41.75737 185 43300 . .570111087839279 .875 0 2 0 0 0 .12786885 47854 60.80886 .9391912 340755 50026 15.9 .6929756214657257 1 0 2 0 1 0 .7438314 51384 37.781467 45.57914 401624 50090 . .8017101010624738 . 1 0 1 0 0 .9580735 50312 19.672886 61.59871 403759 50100 16.6 .7503125383685314 1 0 2 0 1 0 .10615902 51384 18.643398 48.38553 401627 50100 16.6 .6895736756822302 1 0 2 0 1 0 .10615902 51384 18.643398 48.38553 401625 end
svyset[pw= pwt_new]
svy:regress READM_30_AMI pos_overall fin_ehr_scr i.ownership i.bedcode teach_status mhsmemb i.rural_urban_codes Sigma_mkt_shr_sq percapita_inc_2013 mcd_pct mcr_pct
However, in the output, rural_urban_codes appears only once. It has 3 categories in the data and I expect all three categories to show in the results. As you can see, I have created dummy variables by including and i. before the variable name. Despite doing that, the output does not show results for all three categories. Please respond and thank you!