SampleCorrelationMatrix: Sample Correlation Coefficent

Description Usage Arguments Details Value Examples

View source: R/SampleCorrelationMatrix.R

Description

Returns a matrix of the correlation coefficents of the given matrix.

Usage

1

Arguments

x

A Matrix, where each variable represents a column

Details

Given a matrix of data, an algorithm is employed to calculate the sample correlation coefficient matrix. Note: Uses SampleBiasedCovarianceVarianceMatrix function.

Value

A vector of the sample means Test

Examples

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)

OUStudent/Lab1Intro documentation built on Jan. 30, 2020, 6:25 a.m.