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

Re: st: RE: locpoly


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   Re: st: RE: locpoly
Date   Wed, 29 Dec 2004 04:04:36 -0600

Thank you very much.

Fred


Fred,

The problem seems to be when the -noscatter- option is used.

In the locpoly.ado file if you add the -ytitle(`') xtitle(`') and `options'-
to the -graph twoway line- command (and save it as locpoly2) it will honor
the graphing options when the -noscatter- option is invoked.

Below are lines 156 - 162 in -locpoly- :

graph twoway        ///
  `scat'        ///
(line `yhat' `xgrid',     ///
  sort        ///
  pstyle(p1)      ///
  `rlopts'    ///
)

If you add the options after `rlopts' so that it becomes:

graph twoway        ///
  `scat'        ///
(line `yhat' `xgrid',     ///
  sort        ///
  pstyle(p1)      ///
  `rlopts' ytitle(`"`yttl'"') xtitle(`"`xttl'"')  `options'
///
)

now the command will honor the graphing options when -noscatter- is used.

Incidentally, now the command will also respects line width, pattern, and
color with or without scatter.

Hope this helps,
Scott





*
*   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/

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761
[email protected]


*
*   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