[R] Local parameter calculation

Liaw, Andy andy_liaw at merck.com
Thu Apr 17 14:18:11 CEST 2003


I suspect running() or wapply() in the `gregmisc' package would suit your
need.

HTH,
andy

> -----Original Message-----
> From: Minghua Yao [mailto:myao at ou.edu]
> Sent: Wednesday, April 16, 2003 2:21 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Local parameter calculation
> 
> 
> Dear all,
> 
> I am a newbie in R. I encounter a problem as follows.
> 
> I have 2 vectors X and Y that have a equal length of several 
> thousand. I see
> Y as the function of X. Both of them are random. X is not 
> arrranged in any
> order. Of course, I do plot(X,Y). Now, I want to use a 
> sliding narrow window
> to run over each X, then calculate the variances within that window.
> 
> Anyone knows easy way in R to do this? Reply is appreciated.
> 
> -MY
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>



More information about the R-help mailing list