# NOT RUN {
# illustrative correlation matrix
R <- matrix(c( 1, 0.8, 0.5, -0.3,
0.8, 1, 0.2, 0.4,
0.5, 0.2, 1, -0.7,
-0.3, 0.4, -0.7, 1), nrow = 4, ncol = 4)
# convert R into covariance matrices for the chosen targets
mvnconv(R, target = "p")
mvnconv(R, target = "m2lp")
mvnconv(R, target = "chisq1")
mvnconv(R, target = "z")
# convert R into correlation matrices for the chosen targets
mvnconv(R, target = "p", cov2cor = TRUE)
mvnconv(R, target = "m2lp", cov2cor = TRUE)
mvnconv(R, target = "chisq1", cov2cor = TRUE)
mvnconv(R, target = "z", cov2cor = TRUE)
# }
Run the code above in your browser using DataLab