Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Fwd: Graphs and xscale option: plotting only an excerpt of the original distribution of variables


From   Rüdiger Vollmeier <[email protected]>
To   [email protected]
Subject   st: Fwd: Graphs and xscale option: plotting only an excerpt of the original distribution of variables
Date   Thu, 28 Nov 2013 11:36:36 +0100

Hello,

I want to plot only part of a cumulative distribution. I.e. using
-distplot- to plot the following CDFs (but the basic problem is
independet of the Stata command used, i.e. it would ocurr for any
Stata command e.g. -scatter- or -line-).

distplot Var_1 Var_2 Var_3

I have the following problem: I want to see the CDFs only for some
values of the variables i.e. for
Var_1<=.5 & Var_1>=.1 & Var_2<=.5 & Var_2>=.1 & Var_3<=.5 & Var_3>=.1

In other words, I want to see only an excerpt of the original plot.

Using just the xscale option does not work, i.e. does not work:

distplot Var_1 Var_2 Var_3  xsc(r(0.1,.5)) xlabel(0.10 0.25 0.30 0.33 0.50)

Restricting the data is not what I want, i.e.

distplot Var_1 Var_2 Var_3 if Var_1<=.5 & Var_1>=.1 & Var_2<=.5 &
Var_2>=.1 & Var_3<=.5 & Var_3>=.1, xsc(r(0.1,.5)) xlabel(0.10 0.25
0.30 0.33 0.50)

would plot the distribution for certain values of Var_1, Var_2 and
Var_3. In contrast, I would like to plot the distribution for all
values but see only part of the distribution. Any ideas how to achieve
this?

Best,
R
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index