Stata users,
I'am using the "sqreg" and "grqreg" commands to draw graphs after QR.
However, the following error occurs repeatedly:
set seed 10000
sqreg tr_u ab_p_st in_eq_st in_in_st be_res_st age male edu_ca2 edu_ca3 edu_ca4 edu_ca5 marital faminc_low faminc_high subcl_st conserv gentr_st rel2 rel3 rel4 rel5 rel6 rel7 rel8 rel9 rel10 rel11 rel12 rel13 rel14 rel15 rel16 rel17, q(.05 .10 .25 .50 .75 .90 .95) reps(1000)
grqreg ab_p_st in_eq_st in_in_st be_res_st, ci ols olsci level(90) seed(10000)
xtitle(Quantile) is not a twoway plot type
r(198);
There is no problem until sqreg analysis, but why do I get an error when I use the grqreg command?
I would appreciate any help regarding this issue.
Attach my data below.
Thanks.
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
Listed 100 out of 6997 observations
Use the count() option to list more
I'am using the "sqreg" and "grqreg" commands to draw graphs after QR.
However, the following error occurs repeatedly:
set seed 10000
sqreg tr_u ab_p_st in_eq_st in_in_st be_res_st age male edu_ca2 edu_ca3 edu_ca4 edu_ca5 marital faminc_low faminc_high subcl_st conserv gentr_st rel2 rel3 rel4 rel5 rel6 rel7 rel8 rel9 rel10 rel11 rel12 rel13 rel14 rel15 rel16 rel17, q(.05 .10 .25 .50 .75 .90 .95) reps(1000)
grqreg ab_p_st in_eq_st in_in_st be_res_st, ci ols olsci level(90) seed(10000)
xtitle(Quantile) is not a twoway plot type
r(198);
There is no problem until sqreg analysis, but why do I get an error when I use the grqreg command?
I would appreciate any help regarding this issue.
Attach my data below.
Thanks.
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(tr_u ab_p_st in_eq_st in_in_st be_res_st) double(age male) byte(edu_ca2 edu_ca3 edu_ca4 edu_ca5) float(marital faminc_low faminc_high subcl_st conserv gentr_st) 2.548827 1.3009508 -.352054 -.3077172 .7578214 52 0 1 0 0 0 1 0 0 .16746195 2 .57662654 1.4250708 -1.536831 -.9775802 -2.3680973 -3.012605 48 0 1 0 0 0 1 0 1 .9672785 3 .57662654 3.069213 .7333945 .8989983 .46492535 .7578214 52 0 0 1 0 0 1 0 0 .16746195 2 .57662654 2.954046 .8752832 .8989983 -1.3379072 -.4989874 43 0 0 1 0 0 1 0 0 -.6323546 3 .57662654 2.583679 1.0171725 .8989983 -.05016968 .129417 22 0 0 0 1 0 0 0 0 -.6323546 2 .57662654 3.115964 -.1179401 -.352054 .46492535 .129417 60 0 1 0 0 0 1 0 1 .16746195 1 .57662654 2.987078 -.9692747 -1.6031063 -.8228122 -1.7557962 65 1 0 0 1 0 1 0 0 -2.2319877 1 -1.3963103 2.6706216 1.0171725 -.352054 -.5652647 .7578214 46 1 1 0 0 0 1 0 0 -1.432171 3 .57662654 2.1414716 -.5436072 -.9775802 -1.3379072 -1.7557962 37 1 1 0 0 0 0 0 0 -2.2319877 3 -1.3963103 2.758129 -.8273855 .8989983 -.3077172 .129417 26 1 0 0 1 0 0 0 0 -.6323546 2 .57662654 3.325483 -.8273855 .27347213 .20737784 .129417 52 1 1 0 0 0 1 0 0 .16746195 2 -1.3963103 2.450008 1.0171725 .8989983 -.8228122 .7578214 41 1 0 0 1 0 1 0 0 .16746195 2 .57662654 3.115998 -.25982928 -.9775802 -.8228122 .129417 26 1 0 0 1 0 0 0 0 -1.432171 2 -1.3963103 1.9066167 1.5847287 2.1500506 -1.5954547 2.01463 19 1 1 0 0 0 0 0 1 1.767095 2 2.5495634 2.96684 -2.9557216 -.352054 -1.5954547 -.4989874 52 1 0 0 1 0 1 0 0 -.6323546 5 -1.3963103 3.179792 -1.3949418 -.9775802 .46492535 -1.1273918 58 0 1 0 0 0 1 0 0 .9672785 4 -1.3963103 3.77311 .4496162 .8989983 -.05016968 .7578214 25 1 0 0 1 0 0 0 0 .16746195 3 .57662654 2.6428666 1.3009508 .8989983 -.8228122 -1.1273918 25 1 0 0 1 0 0 0 0 -.6323546 2 .57662654 2.762315 .4496162 -1.6031063 -1.8530023 -1.7557962 52 0 0 0 1 0 1 0 1 .16746195 2 -1.3963103 2.2200897 -1.2530526 -.9775802 -1.3379072 -1.1273918 43 0 0 1 0 0 1 0 0 .16746195 3 -1.3963103 2.924837 1.1590617 .8989983 .46492535 .7578214 20 0 0 0 1 0 0 0 0 -1.432171 2 .57662654 3.176029 -.6854964 -.352054 .7224728 .129417 41 0 0 0 0 0 1 0 0 -.6323546 2 .57662654 2.0095997 -.4017184 .27347213 -1.8530023 -1.1273918 53 1 0 0 1 0 1 0 0 .16746195 1 .57662654 2.530223 -.6854964 .27347213 .9800203 -1.1273918 28 1 0 0 1 0 0 0 0 -.6323546 2 -1.3963103 2.963072 -.25982928 -1.6031063 -1.0803597 -.4989874 28 0 0 0 1 0 0 0 0 .16746195 3 -1.3963103 2.0764253 .16583826 -.352054 -1.5954547 -1.1273918 57 1 1 0 0 0 0 0 1 -1.432171 4 .57662654 2.868717 1.1590617 .27347213 -1.3379072 .7578214 67 1 1 0 0 0 1 0 0 .9672785 4 .57662654 3.108452 -.25982928 .27347213 -.5652647 .129417 34 0 0 0 1 0 0 0 1 .16746195 2 -1.3963103 1.6415907 1.0171725 1.5245245 -1.5954547 2.01463 64 0 0 0 0 0 1 0 0 1.767095 3 .57662654 2.503121 -.25982928 .27347213 -.3077172 .7578214 34 0 1 0 0 0 0 0 0 -.6323546 2 .57662654 3.366095 .16583826 .8989983 -.3077172 .7578214 63 1 0 0 0 0 1 0 0 .9672785 2 .57662654 3.017287 .16583826 1.5245245 -1.0803597 1.3862258 30 1 0 1 0 0 0 0 0 2.566912 3 .57662654 4.3971686 .16583826 1.5245245 -.8228122 .129417 52 1 0 1 0 0 1 0 0 -.6323546 4 .57662654 3.167606 .59150535 .27347213 -.3077172 -.4989874 27 0 0 0 1 0 0 0 0 2.566912 2 .57662654 3.933731 .4496162 1.5245245 -1.3379072 2.01463 72 0 0 0 0 0 1 0 0 1.767095 3 .57662654 2.47139 .8752832 .27347213 -.5652647 .7578214 59 0 0 0 0 0 1 0 0 -.6323546 3 .57662654 2.8457446 .7333945 .27347213 -.5652647 .7578214 62 0 1 0 0 0 1 0 1 .9672785 2 .57662654 3.07165 -.9692747 -.352054 .20737784 .7578214 47 0 0 0 1 0 1 0 0 .9672785 2 .57662654 3.0316534 .4496162 .8989983 -.8228122 .7578214 54 0 1 0 0 0 1 0 1 1.767095 1 .57662654 2.8288064 -.5436072 -.9775802 -.05016968 -.4989874 51 1 0 1 0 0 1 0 0 -.6323546 4 -1.3963103 2.60805 2.0103962 .8989983 -.3077172 1.3862258 53 1 0 0 1 0 1 0 0 .9672785 1 .57662654 3.217447 -.5436072 -.352054 -.8228122 -1.1273918 29 1 0 0 1 0 0 0 1 -1.432171 3 -1.3963103 2.8387766 .16583826 -1.6031063 -.5652647 -1.1273918 61 1 0 0 0 0 1 0 0 .16746195 5 -1.3963103 2.4718306 -1.6787198 -2.8541586 .9800203 -2.3842006 66 0 0 0 1 0 0 0 1 .16746195 2 -3.369247 2.460867 -.1179401 .8989983 -.05016968 1.3862258 61 1 1 0 0 0 1 0 0 .9672785 3 -1.3963103 3.0623326 .59150535 -1.6031063 -.3077172 .129417 36 1 0 0 1 0 1 0 0 .9672785 3 -1.3963103 2.825637 -.4017184 .27347213 -.05016968 .129417 29 1 0 0 1 0 1 0 1 -.6323546 2 .57662654 1.8854266 -1.536831 -2.2286325 1.4951154 -2.3842006 54 0 1 0 0 0 1 0 1 .9672785 2 -3.369247 3.351184 .16583826 -.9775802 -.5652647 -1.7557962 44 0 0 0 1 0 1 0 0 -.6323546 3 .57662654 3.299779 .59150535 .8989983 -.5652647 .7578214 28 0 0 0 1 0 0 0 1 -.6323546 2 .57662654 2.2308428 -2.530054 -.352054 .7224728 -1.7557962 45 0 0 0 1 0 1 0 0 .16746195 3 -3.369247 4.0657606 1.726618 .27347213 1.237568 1.3862258 28 1 0 1 0 0 0 0 0 -.6323546 2 .57662654 2.3333313 -.1179401 .27347213 .20737784 -1.1273918 62 0 1 0 0 0 1 0 1 .16746195 3 .57662654 2.2409818 -.1179401 .8989983 .20737784 -1.1273918 48 0 0 0 1 0 1 0 1 -.6323546 2 -1.3963103 2.9809926 .59150535 .27347213 .7224728 -1.1273918 52 0 0 0 0 1 1 0 1 .16746195 3 -1.3963103 2.074997 -2.1043873 -.352054 -1.3379072 -.4989874 34 0 0 0 1 0 1 0 0 -1.432171 3 -1.3963103 3.4962304 1.3009508 .27347213 -.5652647 .7578214 35 0 0 0 1 0 1 0 0 -.6323546 2 .57662654 4.066377 1.0171725 .27347213 -1.3379072 1.3862258 41 1 0 0 1 0 1 0 0 .9672785 2 .57662654 2.48328 -.4017184 -.352054 -1.0803597 -.4989874 28 0 0 1 0 0 0 0 0 -1.432171 2 .57662654 2.777985 -.8273855 -.352054 .20737784 -1.7557962 25 1 0 0 1 0 0 0 1 -2.2319877 3 -1.3963103 3.425864 .7333945 1.5245245 -1.0803597 1.3862258 19 1 1 0 0 0 0 0 0 .9672785 2 .57662654 2.980552 -.25982928 .8989983 -.05016968 -.4989874 58 0 1 0 0 0 1 0 0 -1.432171 3 .57662654 4.2308903 1.0171725 .8989983 -.8228122 1.3862258 51 1 1 0 0 0 1 0 0 .9672785 2 .57662654 3.553029 .8752832 .8989983 -1.0803597 .7578214 62 0 0 0 0 0 1 0 0 .9672785 3 .57662654 2.2668145 .7333945 .8989983 -1.0803597 1.3862258 64 1 0 0 0 0 1 0 0 .9672785 2 .57662654 2.511754 -.1179401 .8989983 -.3077172 -.4989874 63 1 0 0 1 0 1 0 0 -.6323546 2 .57662654 2.243856 -1.1111635 -1.6031063 .7224728 -1.1273918 28 1 0 0 1 0 1 0 0 -1.432171 2 -1.3963103 3.824316 1.0171725 1.5245245 -1.0803597 1.3862258 26 1 0 1 0 0 0 0 0 .9672785 2 .57662654 3.1466544 2.1522849 -.352054 -.3077172 -.4989874 65 0 1 0 0 0 0 0 1 .16746195 2 .57662654 3.332015 -1.2530526 -2.2286325 .9800203 .129417 55 1 0 0 1 0 1 1 0 -2.2319877 3 -1.3963103 3.192106 -1.536831 .8989983 -.5652647 -.4989874 50 0 0 0 1 0 1 0 0 1.767095 3 .57662654 3.088795 1.1590617 .8989983 -.5652647 .7578214 26 1 0 0 1 0 0 0 0 .9672785 2 .57662654 2.919647 .16583826 -.352054 -.05016968 -.4989874 22 1 0 0 1 0 0 0 0 .16746195 2 -1.3963103 2.5876446 .16583826 -.352054 .20737784 .129417 63 1 0 0 1 0 1 0 0 .9672785 4 -1.3963103 2.02323 .4496162 .8989983 -1.0803597 -.4989874 53 0 1 0 0 0 1 0 0 -1.432171 2 -1.3963103 2.831422 -2.6719434 -1.6031063 -1.3379072 -1.1273918 29 1 0 0 0 1 0 0 1 .9672785 3 -1.3963103 3.566973 -.25982928 -.352054 -.8228122 -.4989874 60 0 0 1 0 0 1 0 0 .16746195 4 .57662654 2.339064 -.1179401 .27347213 .20737784 .7578214 41 0 0 0 1 0 1 0 0 -.6323546 3 .57662654 2.583604 -1.3949418 -.9775802 -.05016968 .129417 55 1 0 0 1 0 0 0 1 -.6323546 3 -1.3963103 2.459353 -.25982928 .27347213 .9800203 .129417 26 0 0 0 1 0 0 0 1 .16746195 2 .57662654 2.3267732 -.25982928 .27347213 -.5652647 .7578214 32 1 1 0 0 0 0 0 0 -.6323546 3 -1.3963103 2.550516 -.1179401 -.352054 .20737784 .129417 62 0 1 0 0 0 1 0 0 .16746195 4 -1.3963103 3.130393 -.1179401 -.9775802 -.3077172 -.4989874 38 0 0 0 1 0 1 0 0 2.566912 2 .57662654 1.999648 -3.523278 -3.479685 .20737784 1.3862258 70 0 0 0 0 0 0 0 0 -1.432171 5 -3.369247 4.1954784 2.0103962 .8989983 2.0102105 .7578214 44 0 0 0 1 0 1 0 0 1.767095 3 .57662654 3.354841 -.4017184 1.5245245 -.3077172 -1.1273918 59 0 1 0 0 0 1 0 0 .9672785 2 -1.3963103 2.7889376 .4496162 .27347213 -.05016968 -.4989874 59 1 1 0 0 0 1 0 0 -.6323546 2 .57662654 2.9387586 -.25982928 -.352054 -.5652647 -1.1273918 56 1 0 0 1 0 1 0 0 .16746195 3 -1.3963103 2.804008 .023949083 -.352054 -.3077172 -.4989874 47 1 1 0 0 0 1 0 1 -1.432171 2 .57662654 2.00925 -1.962498 -.352054 -1.3379072 -.4989874 51 1 0 0 1 0 1 0 0 .16746195 4 .57662654 3.8004775 1.4428395 .8989983 -1.0803597 .7578214 64 1 1 0 0 0 1 0 0 .16746195 3 .57662654 3.148788 .307727 .27347213 -.05016968 .129417 48 1 0 1 0 0 1 0 1 .9672785 2 .57662654 2.556286 -.5436072 -2.8541586 -.05016968 -2.3842006 42 0 1 0 0 0 1 0 0 .16746195 3 -1.3963103 2.838123 .59150535 1.5245245 -.05016968 -1.1273918 24 0 0 0 1 0 0 0 0 .9672785 1 .57662654 3.715712 .307727 -.9775802 -.3077172 .129417 45 0 1 0 0 0 1 0 0 -1.432171 3 .57662654 3.3149965 -.25982928 -.9775802 -.3077172 -1.7557962 25 0 0 0 1 0 0 0 0 -.6323546 3 -1.3963103 2.8091815 -.9692747 -.352054 .46492535 -1.1273918 60 0 1 0 0 0 1 0 0 .16746195 2 -1.3963103 3.9039526 -.4017184 -1.6031063 .7224728 -1.1273918 24 1 0 0 1 0 0 0 0 .16746195 2 .57662654 3.2552176 -.9692747 -.352054 .46492535 .7578214 54 0 0 0 1 0 1 0 1 -.6323546 2 .57662654 3.273569 2.2941747 .8989983 1.752663 .7578214 28 0 0 1 0 0 0 0 0 .16746195 2 .57662654 end label values male male label def male 0 "여성", modify label def male 1 "남성", modify
Listed 100 out of 6997 observations
Use the count() option to list more