Description Usage Arguments Value See Also Examples
View source: R/overall.corr.mat.R
This function computes the final correlation matrix by combining pairwise intermediate correlation matrix entries for Poisson-Poisson, Poisson-binary, Poisson-ordinal, binary-binary, binary-ordinal, and ordinal-ordinal combinations. If the resulting correlation matrix is not positive definite, a nearest positive matrix will be used.
1 2 |
n.P |
Number of Poisson variables. |
n.B |
Number of binary variables. |
n.O |
Number of ordinal variables. |
lambda.vec |
Rate vector for Poisson variables. |
prop.vec |
Probability vector for binary variables. |
prop.list |
A list of probability vectors for ordinal variables. |
corr.vec |
Vector of elements below the diagonal of correlation matrix ordered column-wise. |
corr.mat |
Specified correlation matrix. |
A matrix of size (n.P+n.B+n.O)*(n.P+n.B+n.O)
intermediate.corr.PP
, intermediate.corr.BO
,intermediate.corr.PBO
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.