Skip to content
Prev 324598 / 398503 Next

Multivariate EWMA covariance estimator?

On 02-06-2013, at 15:17, Neuman Co <neumancohu at gmail.com> wrote:

            
Without actual data this is an unverifiable statement.
But you probably have to move the statement

summe2 <- 0

to inside the i-forloop just before the a-forloop.

summe2 <- 0
for(a in 1:100){
?

so that summe2 is initialized to 0 every time you use it as an accumulator in the a-forloop.
Furthermore there is no need to initialize dummy2. It gets overwritten continuously.

Berend