Hello everyone.
I would like to find the sample covariance matrix using R.

So far I read on the wikipedia what a sample_covariance is
http://en.wikipedia.org/wiki/Sample_covariance

according to wikipedia one vector is enough to calculate the sample covariance matrix.
In R I tried cov(myvector) and I get the reply that I need to pass either two argument or one matrix with x,y values .

How can I find the sample covariance matrix?

Best Regards
Alex




      
	[[alternative HTML version deleted]]

