Dear All, I tried to use marginsplot after the following regression and got error messages I do not understand.
The above gives the following error message: variable _pw0 not found. Issuing the command
after
gives: _term not labeled.
I wonder why? Can anyone help please?
Here is the data:
Fred
Code:
probit y i.v##i.x1 i.x2 x3 i.t, cl(id) margins v, dydx(x1) pwcompare(pveffects) mcompare(bonferroni) marginsplot
Code:
marginsplot, horizontal unique xline(0) recast(scatter) yscale(reverse)
Code:
margins v, dydx(x1) pwcompare(pveffects) mcompare(bonferroni)
I wonder why? Can anyone help please?
Here is the data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(id v t y x1 x2 x3) 20010 1 1 1 0 1 40 20010 1 2 0 0 1 75 20010 1 3 0 0 1 52 20012 1 2 0 0 1 51 20012 1 3 0 1 1 48 20022 1 2 0 0 1 60 20022 1 3 0 0 0 64 20030 1 1 1 0 1 30 20030 1 2 1 0 1 45 20030 1 3 1 0 1 48 20042 1 2 0 0 1 65 20042 1 3 1 0 1 70 20052 1 2 1 0 1 35 20052 1 3 1 0 1 45 20060 1 1 1 0 1 45 20060 1 2 1 0 1 50 20060 1 3 1 0 1 69 20062 1 2 0 0 1 61 20062 1 3 1 0 1 67 20070 1 1 0 0 1 49 20070 1 2 1 0 1 62 20070 1 3 0 1 1 53 20072 1 2 0 0 0 29 20072 1 3 0 0 1 31 20080 1 1 0 0 1 36 20080 1 2 1 0 1 28 20080 1 3 0 0 1 40 20082 1 2 1 0 1 40 20082 1 3 1 0 1 48 20092 1 2 0 0 1 29 20092 1 3 0 0 1 58 20102 1 2 1 0 1 47 20102 1 3 1 0 1 50 20110 1 1 1 1 1 35 20110 1 2 0 0 1 37 20122 1 2 1 0 1 63 20122 1 3 1 1 1 65 20130 1 1 0 1 0 32 20130 1 2 1 1 1 60 20130 1 3 1 1 1 70 20132 1 2 0 0 1 33 20132 1 3 1 0 1 45 20140 1 1 0 0 0 32 20140 1 2 0 0 1 40 20140 1 3 0 0 0 48 20142 1 2 1 0 0 35 20142 1 3 0 0 1 40 20150 1 1 1 1 1 27 20150 1 2 1 1 1 32 20150 1 3 0 0 1 30 20152 1 2 0 0 1 78 20152 1 3 0 0 1 51 20160 1 1 0 0 1 45 20160 1 2 1 0 1 55 20160 1 3 0 0 1 48 20162 1 2 1 0 1 46 20162 1 3 1 0 1 51 20170 1 1 1 0 1 49 20170 1 2 0 0 1 47 20170 1 3 0 0 1 58 20172 1 2 1 1 1 62 20172 1 3 1 1 1 67 20180 1 1 1 0 1 40 20180 1 2 0 0 0 65 20180 1 3 0 0 1 43 20182 1 2 1 0 1 45 20182 1 3 1 0 1 65 20192 1 2 1 0 1 37 20192 1 3 0 0 1 41 20200 1 1 0 0 1 25 20200 1 2 0 1 1 31 20200 1 3 0 0 1 36 20202 1 2 1 0 1 26 20202 1 3 1 0 1 32 20210 1 1 1 0 0 53 20210 1 2 0 0 0 61 20210 1 3 1 1 1 35 20212 1 2 0 0 0 45 20212 1 3 0 0 1 52 20220 1 1 0 0 1 25 20220 1 2 1 0 1 25 20220 1 3 0 0 1 40 20222 1 2 1 0 1 45 20222 1 3 0 0 1 40 20230 1 1 1 0 0 72 20230 1 2 0 0 0 77 20230 1 3 1 0 1 45 20232 1 2 1 0 1 45 20232 1 3 0 0 1 47 20240 1 1 0 0 0 75 20240 1 2 1 0 0 40 20250 1 1 0 0 0 38 20250 1 2 1 0 1 45 20250 1 3 0 0 1 29 20260 1 1 1 0 0 45 20260 1 2 1 1 1 59 20260 1 3 0 0 1 48 20262 1 2 1 0 1 35 20262 1 3 0 0 1 39 20270 1 1 0 0 0 51 end label values t year label def year 1 "Afrint1", modify label def year 2 "Afrint2", modify label def year 3 "Afrint3", modify label values x1 nfwe label def nfwe 0 "no", modify label def nfwe 1 "yes", modify label values x2 fertd label def fertd 0 "no", modify label def fertd 1 "yes", modify
Comment