Skip to contents

Draws a latent Gaussian array with the given dyadic correlation and thresholds it at zero to produce a binary (0/1) sociomatrix. Self-ties on the diagonal of a unipartite matrix are set to NA; rectangular matrices and explicit bipartite = TRUE inputs keep all cells.

Usage

simY_bin(EZ, rho, bipartite = FALSE)

Arguments

EZ

matrix giving the expected value of the latent Z matrix

rho

dyadic correlation

bipartite

whether row and column actors form disjoint sets; keeps diagonal cells even when the matrix is square.

Value

a binary matrix matching the dimensions of EZ

Author

lame authors