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-continuous, binary-binary, binary-continuous, and continuous-continuous 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.C |
Number of continuous variables. |
lambda.vec |
Rate vector for Poisson variables. |
prop.vec |
Proportion vector for binary variables. |
coef.mat |
Matrix of coefficients produced from |
corr.vec |
Vector of elements below the diagonal of correlation matrix ordered column-wise. |
corr.mat |
Specified correlation matrix. |
A correlation matrix of size (n.P+N.B+n.C)*(n.P+N.B+n.C).
intermediate.corr.PP
, intermediate.corr.BB
, intermediate.corr.CC
,
intermediate.corr.PB
, intermediate.corr.PC
, intermediate.corr.BC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.