Learn R Programming

MultiOrd (version 2.4.3)

simBinCorr: Calculates intermediate binary correlation matrix

Description

Calculates intermediate binary correlation matrix via simulation.

Usage

simBinCorr(ordPmat, CorrMat, no.rows, steps = 0.025)

Value

del.next

Calculated binary correlation matrix

Mlocation

Cutoff point for converting ordinal probabilities to binary ones.

pvec

Vector of binary probabilities

Arguments

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.

See Also

generate.binary, BinToOrd

Examples

Run this code
if (FALSE) 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)
if (FALSE) cmat1= matrix( 	c(1,0.2,0.2,
				0.2,1,0.2,
				0.2,0.2,1),3,3,byrow=TRUE)
if (FALSE) simBinCorr(ordPmat1, cmat1, no.rows=100000, steps = 0.025)
				

Run the code above in your browser using DataLab