Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: locpoly and look of graph

From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: locpoly and look of graph
Date   Mon, 13 Nov 2006 15:00:31 -0600

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:

> -----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?
> Thanks so much,
> Malgosia
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

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