Description Usage Arguments Details Value Examples
View source: R/SampleCorrelationMatrix.R
Returns a matrix of the correlation coefficents of the given matrix.
1 |
x |
A Matrix, where each variable represents a column |
Given a matrix of data, an algorithm is employed to calculate the sample correlation coefficient matrix. Note: Uses SampleBiasedCovarianceVarianceMatrix function.
A vector of the sample means Test
1 2 3 | myMat = c(3,4,2,6,8,2,5, 5,5.5,4,7,10,5,7.5)
dim(myMat) = c(7,2) # Creates a 2x7 matrix
mySampleCorrelationVariable = SampleCorrelationMatrix(myMat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.