losemind wrote:
> 
> If I use a moving average, it will smooth the choppy time series, but
> it will lead to lagging...
> 

The lagging can only be removed if you look into the future, otherwise you
run into causality problems. 
So the easiest way is to center your output data on half the window width.
Not using a rectangular weighting is recommended.


Dieter


-- 
View this message in context: 
http://www.nabble.com/how-to-smooth-timeseries-without-the-lagging--tp24654666p24656137.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to