Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index