Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: locpoly: 4 plots in one graph?


From   austin nichols <[email protected]>
To   [email protected]
Subject   st: RE: locpoly: 4 plots in one graph?
Date   Fri, 5 Aug 2005 15:19:12 -0400

I would think it would be easier to graph nothing using
locpoly, then graph all the generated variables using a
simple graph command:
  sysuse auto
  locpoly price mpg, gen(l1) at(mpg) nogr
  locpoly weight mpg, gen(l2) at(mpg) nogr
  locpoly gear mpg, gen(l3) at(mpg) nogr
  line l1 l2 l3 mpg
where you can scatterplots, etc. as desired.

Note that your adoonly option is slowing your locpoly
estimation down (and offers no advantage).

-----Original Message-----
From: Scott Merryman [mailto:[email protected]]
Sent: Friday, August 05, 2005 6:16 AM

Try -help addplot_option-.  You need to specify what type of plot (line,
scatter, connect,....) you want.  For example:
  sysuse auto
  locpoly price mpg, gen(l1) at(mpg)
  locpoly weight mpg, gen(l2) at(mpg)
  locpoly gear mpg, at(mpg) plot(line l1 mpg, yaxis(2) || ///
   line l2 mpg, yaxis(3)) legend(off) noscatter
Scott

-----Original Message-----
From: Holla, Alaka
Sent: Thursday, August 04, 2005 9:59 PM

i'm try to graph the results of four separate kernel regressions
in one graph. i'm using the following command, but stata just keeps
working and returns nothing for more than 10 minutes:
 "locpoly yvar xvar if blah blah blah, w(1) at(yvar) gen(newname1)
    adoonly noscatter"
i wanted to do this three times (saving newname2 and newname3 as
well), and then the last time write:
 "locpoly yvar xvar if blah blah blah, w(1) adoonly
    noscatter plot(newname1 newname2 newname3)"
in the locpoly help file, the line associated with plot reads:
 "plot(plot) provides a way to add other plots to the generated graph;
    see help plot_option."
there is no help for "plot_option", however, and a keyword search on
returns nothing.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index