rmvord_b: Multivariate Ordinal Random Variates via Binary Conversion

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/rmvord_b.r

Description

Creates correlated multivariate ordinal random variables by converting them into binary variables.

Usage

1
rmvord_b(n = 1, probs, Cor, showCor_b = FALSE)

Arguments

n

Number of Observations

probs

List of probabilities for the variables, length of probability equals number of items, length of list equals number of variables

Cor

Correlation matrix

showCor_b

If TRUE binary correlation matrix is printed.

Details

Binary conversion is used to transform the correlation matrix.

Value

Returns n observations with given marginal probabilities probs and correlation structure Cor.

Author(s)

Dominik Traeger and Sebastian Kaiser

See Also

rmvord,rmvord_mc

Examples

1
rmvord_b(list(c(1,1,1,1)/4,c(1,1,1,1)/4), cbind(c(1, 0.4), c(0.4, 1)), n = 20)

orddata documentation built on May 31, 2017, 2:53 a.m.

Related to rmvord_b in orddata...