Calculate a Covariance Matrix for the Normal Distribution from a Matrix of Joint Probabilities
Computes a covariance matrix for a normal distribution which
corresponds to a binary distribution with marginal probabilities given
diag(commonprob) and pairwise probabilities given by
For the simulations the values of
simulvals are used.
If a non-valid covariance matrix is the result, the program stops with an error in the case of NA arguments and yields are warning message if the matrix is not positive definite.
matrix of pairwise probabilities.
array received by
A covariance matrix is returned with the same dimensions as
Friedrich Leisch, Andreas Weingessel and Kurt Hornik (1998). On the generation of correlated artificial binary data. Working Paper Series, SFB “Adaptive Information Systems and Modelling in Economics and Management Science”, Vienna University of Economics, http://www.wu-wien.ac.at/am