Learn R Programming

lame (version 1.3.4)

rZ_ord_sym_fc: Sample Z under symmetric ordinal data (square symmetric matrix)

Description

Symmetric-Z analogue of rZ_ord_fc: each unordered actor pair carries one latent value (Z[i, j] = Z[j, i]) drawn from a truncated normal with mean equal to the average linear predictor (EZ_ij + EZ_ji) / 2 and variance 1 (the model's conditional). The lower triangle is mirrored after the upper-triangle draws so the full matrix is exactly symmetric at every sweep.

Usage

rZ_ord_sym_fc(Z, EZ, Y)

Value

updated symmetric n x n latent matrix; the diagonal is refreshed with unconstrained normal draws around diag(EZ) so downstream samplers never see missing values.

Arguments

Z

current symmetric latent matrix (n x n, Z = t(Z)).

EZ

expected value of Z (regression + additive + multiplicative contributions); can be asymmetric, the helper averages the two directed contributions.

Y

observed symmetric ordinal matrix (n x n, Y = t(Y)); diagonal is ignored.

Author

Cassy Dorff, Shahryar Minhas, Tosin Salau