Multivariate Ordinal Random Variates

Description

Creates correlated multivariate ordinal random variables by thresholding a normal distribution.

Usage

1
rmvord(n = 1, probs, Cor, showCor_norm = TRUE)

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_norm

If TRUE analytical correlation matrix is printed.

Details

An analytical method was 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_b,rmvord_mc

Examples

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