One way would be use the - generate([newvarx] newvary)- option save the
results and then graph them yourself.
Or, copy -locpoly- to your personal directory (such as, c:\ado\personal\) as
-locpoly2-, add the line
`options' ///
after line 162, so that lines 155 to 163 read:
(line `yhat' `xgrid', ///
sort ///
pstyle(p1) ///
`titles' ///
ytitle(`"`yttl'"') ///
xtitle(`"`xttl'"') ///
`rlopts' ///
`twopts' ///
`options' ///
And save the file.
Now this will work:
sysuse auto,clear
locpoly2 mpg gear, ylabel(10(5)45) xlabel(2(.25)4) ///
ytitle("Probability of changing to another well") ///
xtitle("Arsenic in baseline well, micrograms per liter") ///
title("Non-parametric estimate of the response to arsenic" "concentrations
in well water" ) ///
subtitle("")
Scott
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of [email protected]
> Sent: Monday, November 13, 2006 2:18 PM
> To: [email protected]
> Subject: st: locpoly and look of graph
>
> I'm using the locpoly command and am having trouble controlling the
> titling and look of the axes. The title of the overall graph
> appears just fine when I use the option title("my title"). However,
> the command is ignoring the options ytitle, xtitle, ylabel and
> xlabel. It just puts the default y and x axes titles (variable
> names) and its own choice of ticks and labels. When I use the
> option l1title and b1title, my titles do appear on the y and x axes
> but they get added to the default variable-name titles instead of
> being substituted for them.
>
> Here is the full command as I put it in:
>
> locpoly changednew arsenic if geogbehall1==1 & arsenic<100,
> degree(5) width(6) n(500) ylabel(0(.1)1) xlabel(0(10)100) noscatter
> ytitle("Probability of changing to another well") xtitle("Arsenic in
> baseline well, micrograms per liter") title("Non-parametric estimate
> of the response to arsenic concentrations in well water")
>
> Does anyone know how I can get Stata to give me the axes titles,
> ticks and labels that I want?
>
*
* 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/