Learn R Programming

lame (version 1.3.4)

simY_ord: Simulate an ordinal relational matrix

Description

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

Usage

simY_ord(EZ, rho, Y)

Value

a square matrix

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

Author

lame authors

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.