Check Correlations for Ordinal Values

Description

The function checks if the correlations matrix and the corresponding probabilities lead to a result for rmvord.

Usage

1
check.ordcorr(probs, Cor, switchmax = 1e+06, n = 100, showcommonprob = FALSE, showX = FALSE)

Arguments

probs

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

Cor

Correlation matrix

switchmax

Number of maximal switches

n

Number of Observations

showcommonprob

If TRUE common probabilities are shown

showX

If TRUE resulting correlation matrix is shown

Value

Returns a logical indicating if combination of n, prob and Cor is possible.

Author(s)

Dominik Traeger and Sebastian Kaiser

See Also

minmax.ordcorr

Examples

1
check.ordcorr(list(c(1,1,1,1)/4,c(1,1,1,1)/4), cbind(c(0.5, 0.4), c(0.4, 0.8)), switchmax = 10000, n = 100, showcommonprob = TRUE, showX = TRUE)