Statalist The Stata Listserver

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

st: RE: weighting for Lowess smoothing

From   "Maarten Buis" <>
To   <>
Subject   st: RE: weighting for Lowess smoothing
Date   Tue, 2 May 2006 17:06:49 +0200

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

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) 

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

*   For searches and help try:

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