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]
Re: st: strange kdensity behavior
From 
 
Nick Cox <[email protected]> 
To 
 
"[email protected]" <[email protected]> 
Subject 
 
Re: st: strange kdensity behavior 
Date 
 
Fri, 31 May 2013 19:13:45 +0100 
I guess you'll need to -generate- the density and the corresponding
variable values, then  re-graph.
Nick
[email protected]
On 31 May 2013 17:15, Rebecca Pope <[email protected]> wrote:
> As an add-on question, is there a way to "zoom in" on the lower end of
> the plot? If I use -if-, -kdensity- calculates the density over that
> range (which I don't want).
> To see this:
> kdensity lognorm if lognorm<=10, addplot((kdensity lognorm if
> lognorm<=5, lpattern(dash))) ///
> legend(order(1 "Default Plot" 2 "Added Plot")) name(plot2)
>
> You'll notice that the greatest change is in Default Plot.
>
> If I use the x-axis options, it just changes the labeling without
> excluding the higher values of X.
>
> I'm running Stata 12.1 on Windows 7. Stata is updated to 20 Mar 13 &
> when I checked for updates, nothing new showed up.
*
*   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/