Construct covariance matrices for the generation of simulated test data.
Examples
vcov <- cov_gen(pr_grp_1 = .5, n_fac = 3, n_ind = 2)
str(vcov)
#> List of 3
#> $ vcov_yxw: num [1:8, 1:8] 1 -0.217 -0.416 0.456 0.174 ...
#> ..- attr(*, "dimnames")=List of 2
#> .. ..$ : chr [1:8] "y" "x1" "x2" "x3" ...
#> .. ..$ : chr [1:8] "y" "x1" "x2" "x3" ...
#> $ vcov_yxz: num [1:8, 1:8] 1 -0.217 -0.416 0.456 0.174 ...
#> ..- attr(*, "dimnames")=List of 2
#> .. ..$ : chr [1:8] "y" "x1" "x2" "x3" ...
#> .. ..$ : chr [1:8] "y" "x1" "x2" "x3" ...
#> $ vcov_yfz: num [1:5, 1:5] 1 -0.496 0.735 -0.297 -0.228 ...