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, **statalist.org** is already up and running.

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

From |
Joerg Luedicke <joerg.luedicke@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: -kdensity- problem |

Date |
Thu, 15 Mar 2012 11:50:06 -0700 |

Usually, the grid is wider than the range of the actual data points. I am not sure which method -kdensity- uses but it is probably something related to the bandwidth. It looks like you have a boundary at zero in which case grid points below zero are not desired. I would recommend using Ben Jann's -kdens-, available from SSC (-ssc des kdens-). With -kdens- you can define lower and upper bounds for your density to be estimated (see -help kdens- after installed). J. On Thu, Mar 15, 2012 at 9:38 AM, Ivica Rubil <irubil@eizg.hr> wrote: > Dear all, > > One of the options for -kdensity- is -generate(newvarx,newvard)- where newvarx will contain the points at which the density is estimated. After I run the command, part of these points are negative values in spite of the fact that the variable whose density I'm trying to estimate takes on positive values only (income). Can anyone tell me why is that so, and what can I do to fix it (if it needs to be fixed at all)? > > Ivica > > > > -- > Ivica Rubil > Ekonomski institut || The Institute of Economics, Zagreb > Trg J. F. Kennedyja 7, 10 000 Zagreb, Croatia > tel. +385-1-2362-269 || fax. +385-1-2335-165 > irubil@eizg.hr || www.eizg.hr > > > > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: eliminating reference category lines using esttab***From:*Colleen Nugent <cnugent@sociology.rutgers.edu>

**st: -kdensity- problem***From:*"Ivica Rubil" <irubil@eizg.hr>

- Prev by Date:
**Re: st: IV Probit** - Next by Date:
**Re: st: ldecomp with weights and mi estimate** - Previous by thread:
**st: -kdensity- problem** - Next by thread:
**Re: st: eliminating reference category lines using esttab** - Index(es):