I am trying to implement your arhomme command, but I am encountering a problem. When I try to specify the weights, I receive the following error: "estimates post: matrix has missing values." I want to run the model listed below. The variable new_weights represents the constructed survey weights, which I have previously used with the qreg command, and it worked fine. I have posted the dataex of the variables I used. Any help or guidance you could provide would be greatly appreciated.
xi:arhomme log_avrg_cost inc_d endentulism race age_cat male education veteran mothered wealth smoke_now chronicdisease[pw=new_weight], select(r11dentst = dentalinsurance_w1 endentulism) quantiles(0.5) taupoints(7) rhopoints(25) gaussian meshsize(1) graph nostderrors
xi:arhomme log_avrg_cost inc_d endentulism race age_cat male education veteran mothered wealth smoke_now chronicdisease[pw=new_weight], select(r11dentst = dentalinsurance_w1 endentulism) quantiles(0.5) taupoints(7) rhopoints(25) gaussian meshsize(1) graph nostderrors
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input float(log_avrg_cost inc_d endentulism race age_cat) byte(male education veteran) float mothered byte(wealth r11dentst) float(dentalinsurance_w1 smoke_now chronicdisease new_weight)
5.860786 0 0 1 3 0 5 0 1 4 1 0 0 3 4918.557
0 0 0 1 1 0 5 0 1 4 1 1 0 3 6623.596
6.478509 0 0 1 2 0 3 0 0 4 1 1 0 0 5815.177
7.824446 0 0 1 2 0 4 0 1 4 1 0 1 0 5893.801
6.398595 0 0 1 3 1 5 1 1 4 1 1 0 2 6132.698
8.699764 0 0 1 2 0 5 0 0 4 1 1 0 0 6568.66
5.525453 0 0 4 3 0 5 0 1 4 1 1 0 2 6938.598
0 0 0 3 3 0 1 0 . 2 0 1 0 2 .
6.685861 0 0 3 3 0 1 0 0 1 1 1 0 2 .
6.398595 0 0 1 2 0 1 0 1 4 1 1 0 1 .
7.378384 0 0 1 4 1 5 1 0 4 1 0 0 2 6378.651
0 0 0 3 3 0 1 0 0 1 1 1 0 2 8065.042
0 0 1 4 3 1 1 0 0 1 0 1 0 3 .
0 0 1 2 3 0 3 0 0 1 1 1 0 1 .
0 0 0 2 3 1 1 0 . 1 0 0 0 0 .
7.151485 0 0 1 3 0 4 0 1 1 1 1 0 1 .
0 1 1 2 3 0 1 0 . 1 0 1 0 1 .
6.216606 0 0 1 3 0 4 0 1 4 1 1 0 0 .
5.993961 0 0 1 3 1 5 1 1 4 1 1 0 0 .
8.03948 0 0 1 3 0 1 0 1 4 1 0 0 1 5896.825
0 0 0 1 3 0 3 0 1 1 0 0 0 2 .
5.303305 0 1 4 3 0 5 0 0 4 1 1 0 2 6781.349
5.303305 0 0 4 3 1 5 1 0 4 0 1 0 3 6224.931
4.620059 0 0 1 3 0 3 0 0 1 1 1 0 0 6747.077
0 0 1 1 3 1 4 1 . 2 0 1 0 1 6543.964
7.313887 0 0 1 2 0 5 0 1 2 1 1 0 0 6165.962
8.881975 0 0 1 4 0 5 0 1 4 1 0 0 2 .
5.993961 0 0 1 3 1 5 1 1 4 1 0 0 2 .
7.824446 0 0 1 3 0 3 0 1 4 1 0 0 0 .
7.523481 0 0 1 3 1 5 0 0 4 1 1 0 3 6313.635
6.803505 0 0 1 3 0 5 0 1 4 1 1 0 1 7654.785
0 0 0 2 3 0 1 0 0 3 1 1 0 2 2294.2178
0 0 0 2 3 0 5 0 1 1 0 0 0 2 .
0 0 1 2 3 0 1 0 0 4 0 0 0 1 .
0 0 1 2 2 0 3 0 0 1 0 0 0 0 .
6.398595 0 0 2 3 1 3 1 1 3 1 1 0 3 3628.3115
0 0 0 2 3 0 3 0 1 3 1 1 0 0 1960.0643
6.908755 0 0 2 3 1 3 0 0 2 0 0 . 2 .
5.786897 0 0 3 1 0 3 0 1 4 1 1 0 0 6675.004
4.836282 0 0 4 3 0 1 0 0 4 1 1 0 0 .
5.303305 0 0 4 4 1 5 0 0 4 1 1 0 0 .
6.908755 0 0 3 3 1 4 1 1 4 1 1 0 1 3176.7256
3.314186 0 0 1 2 0 4 0 1 4 1 1 0 0 3072.397
7.31422 0 0 1 2 0 4 0 0 4 1 0 0 1 .
8.987322 0 0 2 3 0 5 0 0 1 1 1 0 4 3192.3496
0 0 1 4 3 0 4 0 0 2 0 1 0 0 .
4.912655 1 0 1 3 1 1 0 1 2 1 1 0 1 6398.812
5.86221 0 0 1 3 0 5 0 1 2 1 1 0 1 6481.468
5.239098 0 0 1 3 1 3 1 0 4 1 1 0 2 6808.061
0 0 0 2 3 0 4 0 0 3 0 0 0 3 11825.906
6.803505 0 0 1 4 1 5 1 1 4 1 1 0 2 7366.496
7.438972 0 0 3 3 0 3 0 0 3 1 0 0 1 3320.87
0 0 1 3 3 1 2 1 0 3 0 0 0 1 3323.894
4.6151204 0 0 4 4 1 5 0 0 2 0 0 0 1 1206.5812
3.9318256 0 0 4 3 0 5 0 0 2 1 0 0 2 1571.9827
0 0 0 2 3 0 1 0 0 1 0 0 1 2 5680.608
5.351858 0 0 2 3 0 3 0 0 1 1 0 0 1 4061.249
0 0 0 2 3 0 1 0 . 1 0 0 0 2 .
6.53814 0 0 1 3 1 4 1 0 1 1 0 0 3 3392.4385
7.313887 1 0 4 2 0 1 0 1 2 1 1 0 6 3709.96
8.101981 0 0 1 4 1 3 1 1 4 1 0 0 4 .
6.29803 0 0 1 3 0 1 0 1 4 1 0 0 1 .
6.055613 0 0 1 3 0 5 0 1 3 1 1 0 1 4188.258
0 0 0 1 3 0 3 0 1 2 0 0 0 2 3567.327
7.91972 0 0 1 4 0 4 0 0 4 1 0 0 3 3992.201
6.908755 0 0 1 4 1 5 1 . 4 1 1 0 1 3890.897
7.003974 0 0 1 4 1 4 1 1 4 1 0 0 1 .
6.763885 0 0 1 3 0 3 0 0 4 1 0 0 4 .
0 0 0 1 2 0 3 0 1 2 1 1 0 1 .
0 0 0 1 3 0 2 0 0 3 1 1 0 0 4232.61
1.7917595 0 0 3 3 0 3 0 . 1 1 0 0 3 .
0 1 0 2 1 0 1 0 0 1 0 0 1 1 .
0 0 0 2 1 0 4 0 0 1 0 1 1 2 .
0 0 1 2 3 0 4 0 1 2 0 0 0 3 .
0 0 0 1 3 0 1 0 0 1 0 0 0 2 .
6.685861 0 0 1 3 1 4 1 1 2 1 1 0 1 4108.6255
5.463832 0 0 1 3 1 3 0 . 3 1 0 0 2 4545.595
0 0 0 1 3 0 3 0 1 4 0 0 0 1 4109.1294
4.620059 0 0 1 4 1 1 1 0 3 1 1 0 0 4699.8203
6.634634 0 0 1 3 1 5 1 1 4 1 0 0 2 .
5.525453 0 0 1 3 1 5 0 0 4 0 1 0 2 3485.679
5.860786 0 0 1 1 0 5 0 1 4 1 1 0 0 4411.027
0 0 1 1 3 1 2 0 0 3 0 0 0 3 .
6.246107 0 0 3 2 0 1 0 0 3 1 0 . 2 .
0 0 0 1 4 1 1 0 0 2 0 1 0 3 .
5.673323 0 0 1 4 0 4 0 0 3 1 0 0 0 3694.336
0 0 1 2 3 0 3 0 0 1 0 0 0 3 .
0 0 0 2 3 1 2 0 1 1 0 0 1 0 5680.104
0 1 1 2 3 1 3 0 1 2 0 0 1 0 3492.735
0 0 0 2 3 0 4 0 0 2 0 0 0 2 .
3.433987 0 0 2 3 1 4 1 0 3 1 1 0 2 1660.687
3.9318256 1 0 2 1 0 4 0 0 3 1 1 1 2 1695.4633
5.170484 0 0 2 3 1 1 0 1 2 1 0 0 3 .
0 0 0 2 2 1 3 1 0 1 1 0 . 4 0
0 0 1 1 3 1 1 1 0 3 0 0 0 4 5537.976
7.601402 0 0 1 3 0 1 0 0 4 1 0 0 0 5666.496
0 0 1 2 3 1 1 1 . 2 0 0 0 3 .
0 0 0 2 2 0 3 0 1 3 0 0 0 1 .
0 0 1 1 2 0 3 0 . 2 0 0 1 2 .
0 1 1 1 3 1 4 0 1 4 0 0 0 4 .
end
label values inc_d inc_d
label def inc_d 0 "No", modify
label def inc_d 1 "Yes", modify
label values endentulism endentulism
label def endentulism 0 "No", modify
label def endentulism 1 "Yes", modify
label values race race
label def race 1 "White", modify
label def race 2 "Black", modify
label def race 3 "Hispanic", modify
label def race 4 "Other", modify
label values age_cat age_cat
label def age_cat 1 "50-59", modify
label def age_cat 2 "60-69", modify
label def age_cat 3 "70-79", modify
label def age_cat 4 "80+", modify
label values male male
label def male 0 "Female", modify
label def male 1 "Male", modify
label values education EDUC
label def EDUC 1 "1.lt high-school", modify
label def EDUC 2 "2.ged", modify
label def EDUC 3 "3.high-school graduate", modify
label def EDUC 4 "4.some college", modify
label def EDUC 5 "5.college and above", modify
label values veteran veteran
label def veteran 0 "No", modify
label def veteran 1 "Yes", modify
label values mothered mothered
label def mothered 0 "Less than High School", modify
label def mothered 1 "High School or Higher", modify
label values r11dentst YESNO
label def YESNO 0 "0.no", modify
label def YESNO 1 "1.yes", modify
label values dentalinsurance_w1 dentalinsurance_w1
label def dentalinsurance_w1 0 "No", modify
label def dentalinsurance_w1 1 "Yes", modify
label values smoke_now smoke_now
label def smoke_now 0 "Non-Smoker", modify
label def smoke_now 1 "Currently Smokes", modify
