Description Usage Arguments Value Examples
Convert a named list of correlations to a correlation matrix with named dimensions.
1 |
x |
A named list of correlations (see example below). |
Retruns a correlation matrix with named dimensions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | x1 <- list(disc=c(.2, .4, .2), EE=c(.67, .54), PA=c(.86), DP=c())
MDlist2matrix(x1)
x2 <- list(disc=c(.6), BO=c())
MDlist2matrix(x2)
x3 <- list(disc=c(), EE=c(.2), PA=c(.4, .67), DP=c( .2, .54, .86))
MDlist2matrix(x3)
x4 <- list(disc=c(.2, .4, .2), EE=c(), PA=c(), DP=c())
MDlist2matrix(x4)
x5 <- list(disc=c(), EE=c(.2), PA=c(.4), DP=c(.2))
MDlist2matrix(x5)
## Not run:
x6 <- list(disc=c(.2), EE=c(.2), PA=c(.4), DP=c(.2))
MDlist2matrix(x6) #error expected
## End(Not run)
path <- system.file("extdata/bibTest.bib", package = "metaDAT")
dat <- read.MD(path)
MDapply(dat, "correlation_triangle", MDlist2matrix, "cor_mats")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.