simBinCorr | R Documentation |
Calculates intermediate binary correlation matrix via simulation.
simBinCorr(ordPmat, CorrMat, no.rows, steps = 0.025)
ordPmat |
Input matrix of ordinal marginal probabilities |
CorrMat |
Correlation matrix of the multivariate ordinal data |
no.rows |
Number of rows to use to calculate intermediate binary correlation matrix |
steps |
Fraction of difference between the current and target matrix to be added in each iteration. |
del.next |
Calculated binary correlation matrix |
Mlocation |
Cutoff point for converting ordinal probabilities to binary ones. |
pvec |
Vector of binary probabilities |
generate.binary
, BinToOrd
## Not run: ordPmat1 = matrix( c(0.15,0.70,0.40,
0.55,0.10,0.25,
0.25,0.10,0.15,
0.05,0.10,0.20),4,3,byrow=TRUE)
## End(Not run)
## Not run: cmat1= matrix( c(1,0.2,0.2,
0.2,1,0.2,
0.2,0.2,1),3,3,byrow=TRUE)
## End(Not run)
## Not run: simBinCorr(ordPmat1, cmat1, no.rows=100000, steps = 0.025)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.