[R] Sample covariance matrix in R

Doran, Harold HDoran at air.org
Thu Nov 18 19:26:12 CET 2010


Alex:

?cov

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
> Behalf Of Alaios
> Sent: Thursday, November 18, 2010 12:54 PM
> To: Rhelp
> Subject: [R] Sample covariance matrix in R
> 
> 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]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list