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]

Re: st: strange kdensity behavior


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: strange kdensity behavior
Date   Fri, 31 May 2013 12:29:40 -0400

Rebecca Pope <[email protected]>:
You are combining -kdensity- and -twoway kdensity- which have
different defaults, probably most importantly for your application the
number of points at which the density is estimated. Try putting option
-n(200)- on both... might also recast(scatter).

On Fri, May 31, 2013 at 12:15 PM, Rebecca Pope <[email protected]> wrote:
> Hi all,
> I'm seeing something strange when I'm using -kdensity- and I'm
> wondering if anyone else can duplicate this.
>
> When I plot a variable using -kdensity-, I get densities that do not
> make sense. However, if I graph that _same_ variable with the
> -addplot((kdensity))- option, the densities are correct. Here is an
> illustration.
>
*
*   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