[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: locpoly: 4 plots in one graph?
I would think it would be easier to graph nothing using
locpoly, then graph all the generated variables using a
simple graph command:
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).
From: Scott Merryman [mailto:email@example.com]
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:
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
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)
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
* For searches and help try: