Skip to contents

Simulates an ordinal relational matrix whose marginal category frequencies match those of an observed ordinal matrix.

Usage

simY_ord(EZ, rho, Y)

Arguments

EZ

square matrix giving the expected value of the latent Z matrix

rho

scalar giving the within-dyad correlation

Y

ordinal relational data matrix

Value

a square matrix

Details

A latent Gaussian relational array is drawn from the social relations model with mean EZ and within-dyad correlation rho via simZ. The latent values are then discretized into ordinal categories by cutting them at empirical quantiles chosen so that the proportion of entries falling in each category reproduces the marginal distribution of the observed categories of Y.

Author

lame authors