powered by
Form the correlation matrix of order order for which all correlations potentially differ.
matrix
order
mat.corg(rhos, order, byrow = FALSE)
A correlation matrix.
A numeric containing the p(p -1)/2 correlation values ordered either by columns (if byrow is FALSE) or by rows (if byrow is TRUE).
numeric
p(p -1)/2
byrow
The order of the correlation matrix to be formed.
A logical. If FALSE the lower-traingle of the matrix is filled by columns, otherwise the the ower triangle is filled by rows.
logical
FALSE
Chris Brien
mat.I, mat.J, mat.cor, mat.banded, mat.exp, mat.gau, mat.ar1, mat.ar2, mat.sar2, mat.ma1, mat.ma2, mat.arma
mat.I
mat.J
mat.cor
mat.banded
mat.exp
mat.gau
mat.ar1
mat.ar2
mat.sar2
mat.ma1
mat.ma2
mat.arma
corr <- mat.corg(rhos = c(0.4, 0.2, 0.1), order = 3)
Run the code above in your browser using DataLab