Statalist The Stata Listserver


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

Re: st: RE: weighting for Lowess smoothing


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: RE: weighting for Lowess smoothing
Date   Tue, 2 May 2006 13:25:07 -0400

It may be that the labor-intesive part of the -lowess- command is
compiled code (_LOWESS is built-in in both Stata 8 and Stata 9), but
it does run a whole heck of a lot slower than -locpoly- (which is why
I assumed it was interpreted code, I guess).  In this simple example,
-lowess- takes more than 15 times as long (2 min versus 6 sec).

clear
sysuse auto
replace wei=round(wei/10)
expand wei
set rmsg on
locpoly price mpg, name(locpoly) width(2)
lowess price mpg, name(lowess) bw(1)

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