Learn R Programming

dae (version 3.2.30)

mat.cor: Forms a correlation matrix in which all correlations have the same value.

Description

Form the correlation matrix of order order in which all correlations have the same value.

Usage

mat.cor(rho, order)

Value

A correlation matrix.

Arguments

rho

A numeric containing the single correlation value.

order

The order of the correlation matrix to be formed.

Author

Chris Brien

See Also

mat.I, mat.J, mat.corg, mat.banded, mat.exp, mat.gau, mat.ar1, mat.ar2, mat.sar2, mat.ma1, mat.ma2, mat.arma

Examples

Run this code
    corr <- mat.cor(rho = 0.4, order = 3)

Run the code above in your browser using DataLab