Description Usage Arguments Value See Also Examples
The function computes an intermediate correlation matrix which leads to the target correlation matrix after ordinalization of the samples generated from a multivariate normal distribution with the intermediate correlation matrix.
1 | cmat.star(plist, CorrMat, no.ord, no.norm)
|
plist |
A list of probability vectors corresponding to each ordinal variable. The i-th element of |
CorrMat |
The target correlation matrix which must be positive definite and within the valid limits. |
no.ord |
Number of ordinal variables in the data. |
no.norm |
Number of normal variables in the data. |
An intermediate correlation matrix of size (no.ord + no.norm) \times (no.ord + no.norm)
1 2 3 4 5 6 7 |
Loading required package: mvtnorm
Loading required package: corpcor
Loading required package: Matrix
Loading required package: GenOrd
Loading required package: MASS
[,1] [,2] [,3] [,4]
[1,] 1.0000000 0.5394212 0.8971344 0.3331014
[2,] 0.5394212 1.0000000 0.4070374 0.1537324
[3,] 0.8971344 0.4070374 1.0000000 0.2600000
[4,] 0.3331014 0.1537324 0.2600000 1.0000000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.