Statalist The Stata Listserver


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

Re: st: RE: weighting for Lowess smoothing


From   Yoshiro Nagao <[email protected]>
To   [email protected]
Subject   Re: st: RE: weighting for Lowess smoothing
Date   Wed, 3 May 2006 01:08:11 +0900 (JST)

Dear Nick, Austin, and Marrten,

Thanks again for your quick advice.

As Nick warned of, "expand" generate
580 000 observations, and a single
execution of "lowess" took 10 minutes.
But I am happy with it as far as it works.

What is the advantage of locpoly
over lowess?

Yoshiro

--- Maarten Buis <[email protected]> からのメッセージ:
> ---- Yoshiro Nagao wrote:
> > I am thinking of using Lowess smoothing
> > for such a dataset in which
> > each data-point corresponds to one community.
> 
> > Since different communities differ in
> > population size,
> > they should be weighted, as I suppose,
> > according to their size.
> 
> ---- Austin Nichols responded:
> > Depending on what you actually want to do, you
> > may find it helpful to -expand- your data by 
> > population size (the equivalent of fweights) and
> > then run -locpoly- (local polynomial regression)
> > on the expanded data.
> 
> Yoshiro:
> When I had to do something like that I was unable 
> to find how to do that in Stata and I eventually 
> did it in R using the locfit package. (My weights 
> were inverse variances so I would not know how to 
> expand that  and use -locpoly- with that) 
> HTH,
> Maarten
> 
> http://www.r-project.org
> http://www.locfit.info/
> 
> 
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology 
> Vrije Universiteit Amsterdam 
> Boelelaan 1081 
> 1081 HV Amsterdam 
> The Netherlands
> 
> visiting adress:
> Buitenveldertselaan 3 (Metropolitan), room Z214 
> 
> +31 20 5986715
> 
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
> 
> 
> 
> 
> 
>  
> *
> *   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/
> 

--------------------------------------
Yahoo! JAPAN 10th Anniversary Special Feature
--- Enjoy Yahoo! Auction with Yahoo! Mail !! ---
http://pr.mail.yahoo.co.jp/auction/
*
*   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