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 |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: how to draw several kdensity curves in one graph |

Date |
Wed, 3 Mar 2010 12:59:20 -0000 |

Typo time: -plot()- is typically undocumented. Sorry! Nick n.j.cox@durham.ac.uk -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox Sent: 03 March 2010 12:57 To: statalist@hsphsun2.harvard.edu Subject: RE: st: how to draw several kdensity curves in one graph Only -plot()- works in Stata 8. -plot()- and -addplot()- both work in Stata 9 up, but -addplot()- is typically undocumented. Nick n.j.cox@durham.ac.uk Christopher Hajzler I should have mentioned one more thing: I use an older version of Stata (Stata 8), but when I was researching commands, some instructions mentioned "addplot" instead of just plot, but this did not work for me. Possibly this is the command you would want to use for more recent versions of Stata, but I am not sure. On Wed, Mar 3, 2010 at 10:49 AM, Christopher Hajzler <chajzler@gmail.com> wrote: > > Coincidentally, I was just wrestling with the same thing myself > yesterday. Here is the command I used: > > kdensity var if (year==1999), plot(kdensity var if > (year==1989)||kdensity var if (year==1979)) legend(ring(0) pos(2) > label(1 "1999") label(2 "1989") label(3 "1979") ) * * 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: how to draw several kdensity curves in one graph***From:*"G. Dai" <dgecon@gmail.com>

**Re: st: how to draw several kdensity curves in one graph***From:*Christopher Hajzler <chajzler@gmail.com>

**Re: st: how to draw several kdensity curves in one graph***From:*Christopher Hajzler <chajzler@gmail.com>

**Re: st: how to draw several kdensity curves in one graph***From:*Christopher Hajzler <chajzler@gmail.com>

**RE: st: how to draw several kdensity curves in one graph***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**RE: st: how to draw several kdensity curves in one graph** - Next by Date:
**st: structural var** - Previous by thread:
**RE: st: how to draw several kdensity curves in one graph** - Next by thread:
**st: Question on PCSE vs FGLS and serial correlation** - Index(es):