Computes a covariance matrix for a normal distribution which
corresponds to a binary distribution with marginal probabilities given
by `diag(commonprob)`

and pairwise probabilities given by
`commonprob`

.

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.

1 | ```
commonprob2sigma(commonprob, simulvals)
``` |

`commonprob` |
matrix of pairwise probabilities. |

`simulvals` |
array received by |

A covariance matrix is returned with the same dimensions as
`commonprob`

.

Friedrich Leisch

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

1 2 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.