Bookmark and Share

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

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

Re: st: strange kdensity behavior

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

Rebecca Pope <>:
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 <> 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:

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