I have a problem with two way scatter.
I am using the following command to plot as in the following graphs.
twoway (scatter mp year if id==15, recast(area) bcolor(gs6) cmissing(n) ///
yaxis(1) ylabel(0 1) yscale(off)) ///
(tsline emp if id==15,color(blue) yaxis(2) yscale(alt axis(2)) ///
ytitle("", axis(2)) title(Malaysia)), yline(25 ,axis(2) lcolor(red))
Note: emp is continuous variable, whereas mp contains 1 if there is an event and missing if there isn’t an event.
Array
Array
The main problem here is with vertical line. I get the vertical line when there are more than one event but don't get the vertical line when there is just one event like for Malaysia 1997. Can anyone tell me how to solve this?
Related Posts with two way scatter
Hausman Test for testing differences between two estimation methods.In my thesis study I am trying to estimate 11 different ARDL models. However when I checked correlat…
Network meta-analysis from precomputed effect sizeCould I do a network meta-analysis, if I had only the hazard ratio from each article (did not have e…
Which analysis to use for three repeated measures binary outcomeI'm working on a panel survey. I have a binary y dependent variable measured three times, once befor…
Conditioning on value of first year for each country in unbalanced panel dataHi all! I have country/year panel data. I would like to drop some observations according to specifi…
Local variable list macro is giving errorHi everyone, I am trying to use the local macro to define few variables in a group i.e. local A va…
Subscribe to:
Post Comments (Atom)
0 Response to two way scatter
Post a Comment