Hi:
> a <- matrix(1:8, 2, 4)
> cov(a)# using cov() from stats package
[,1] [,2] [,3] [,4]
[1,] 0.5 0.5 0.5 0.5
[2,] 0.5 0.5 0.5 0.5
[3,] 0.5 0.5 0.5 0.5
[4,] 0.5 0.5 0.5 0.5
After using package sos to discover that ccov() is a function in package
robust (which was con
Hi,
Excuse me for asking this silly question. But I really couldn't understand
why cov() and ccov() don't work for my calculation of covariance matrix.
a <- matrix(1:8, 2, 4)
a
[,1] [,2] [,3] [,4]
[1,]1357
[2,]2468
> ccov(a)
Error in solve.default(cov, ...) :
2 matches
Mail list logo