I have a dataset with 79 observations. I am using Stata 13.1
I want to plot two variables
The indépendant variable is called pYAP and is on the x axis and dichotomized. The second variable is continuous, called AFP, on the y axis.
and I obtained this graph:

There is a big gap between 1500 and 4200 so I would like to create a scale break before showing the two "outliers".
I did read http://www.stata.com/support/faqs/gr.../scale-breaks/ and other previous posts on scale breaks. My understanding from those websites is that although scale breaks are not recommended, they can still be created.
so I tried:
And it gave me this:

Which is not what I want. I only want the scale to be shorten between 1500 and 4200.
Is it possible to do so?
Thank you,
JM Giard
I want to plot two variables
The indépendant variable is called pYAP and is on the x axis and dichotomized. The second variable is continuous, called AFP, on the y axis.
Code:
graph box AFP, over(pyap_dic) title(AFP and pYAP)
There is a big gap between 1500 and 4200 so I would like to create a scale break before showing the two "outliers".
I did read http://www.stata.com/support/faqs/gr.../scale-breaks/ and other previous posts on scale breaks. My understanding from those websites is that although scale breaks are not recommended, they can still be created.
so I tried:
Code:
gen AFP_break = cond(AFP == 4000, 0, AFP) label def AFP_break 0 "4000" label val AFP_break AFP_break label var AFP_break AFP graph box AFP_break, over(pyap_dic) ylabel (0 3000 7000, valuelabel) title(AFP and pYAP) yline(4000)
Which is not what I want. I only want the scale to be shorten between 1500 and 4200.
Is it possible to do so?
Thank you,
JM Giard
Comment