Statalist The Stata Listserver


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

Re: st: -lowess- does not respect the cols() or rows() suboption when used with by()


From   jpitblado@stata.com (Jeff Pitblado, StataCorp LP)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -lowess- does not respect the cols() or rows() suboption when used with by()
Date   Sun, 25 Jun 2006 14:28:15 -0500

Eva Poen <lexep2@nottingham.ac.uk> wrote in, pointing out some trouble with a
suboption of -by()- in the -lowess- command:

> both in Stata 9.2 and 8.2, the -lowess- command does not respect the
> rows() or cols() suboption to by():
> 
> -lowess price mpg, by(foreign, cols(1))-
> 
> produces two columns instead of one, whereas
> 
> -scatter price mpg, by(foreign, cols(1))-
> 
> behaves as expected. Am I overlooking something very obvious here? The
> help file for -lowess- states that twoway options may be applied,
> including by() suboptions.

Nick Cox <n.j.cox@durham.ac.uk> replied after peeking at lowess.ado:

> This does look like a bug. -local byopts- is defined
> but apparently never used within the code, so 
> I suspect that your option disappears into nothingness. 

Nick found the source of the problem.

We should have this fix ready for the next ado-file update.

--Jeff
jpitblado@stata.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index