Skip to content
Prev 327479 / 398502 Next

number of items to replace is not a multiple of replacement length

Hello,

Once again, the matrix EWMA has not the correct size.

Did you carefully read the answer by Thomas Stewart?
https://stat.ethz.ch/pipermail/r-help/attachments/20130724/c454b0f7/attachment.pl

Extract of his reply: "When you expand the example to 5 stocks,
there will be 15 elements (5 variances and 10 covariances)"

 > EWMA<-matrix(nrow=T,ncol=15))

Regards,
Pascal
On 26/07/2013 14:37, G Girija wrote: