Skip to contents

Draws a latent normal array from the social relations model: each directed cell has mean EZ and marginal variance s2, and the two cells of a dyad share within-dyad correlation rho. Rectangular (bipartite) inputs carry no within-dyad correlation and are drawn independently.

Usage

simZ(EZ, rho, s2 = 1, bipartite = FALSE)

Arguments

EZ

expected value of Z

rho

dyadic correlation

s2

dyadic variance

bipartite

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

Value

a simulated value of Z

Author

lame authors