Learn R Programming

corrMCT (version 0.2.0)

corrmat_CS: Compound symmetric correlation matrix

Description

An easy function to generate a compound symmetric correlation matrix

Usage

corrmat_CS(m, rho)

Value

A correlation matrix

Arguments

m

An integer. Dimension of the correlation matrix.

rho

A number. Correlation coefficient between \((0,1)\)

Examples

Run this code
corrmat_CS(
  m = 3,
  rho = 0.2
)

Run the code above in your browser using DataLab