Description Usage Arguments Details Value Author(s) See Also Examples
This functions calculates the moving average for a vector.
1 | ma.vector(A,M,av="median",delta=50)
|
A |
vector of predictor to be used for sorting |
M |
vector of variable to be averaged |
av |
averaging by mean or median (default) |
delta |
even integer determining the size of the sliding window ( |
The function ma.vector
first sorts M according to the corresponding values of A.
Subsequently, a moving average is calculated with window size (2*delta+1
). The
values for the moving average are set to zero if the corresponding window extends
over the boarder of the vector M
.
Vector with moving average values of M
Matthias E. Futschik,http://itb.biologie.hu-berlin.de/~futschik
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.