The per-period observation model is the pair model the rest of the
sampler uses: the two cells of a dyad, (e_ij, e_ji), have covariance
s2 * matrix(c(1, rho, rho, 1), 2, 2). Conditioning one actor's
coordinates on every other actor's leaves an exact Gaussian full
conditional in which the dyadic correlation enters three ways: the
likelihood precision is scaled by 1 / (1 - rho^2), the linear term
carries -rho times the reciprocal residual, and the self-cell (i, i)
contributes a rank-one correction. Passing rho = 0 reproduces
the independent-dyad kernel exactly.
Usage
rUV_dynamic_fc_cpp(
U_current,
V_current,
ET,
rho_uv,
sigma_uv,
s2,
shrink,
symmetric,
rho = 0,
max_abs = -1
)Arguments
- U_current
Current 3D array of U positions (n x R x T)
- V_current
Current 3D array of V positions (n x R x T)
- ET
3D array of residuals (n x n x T)
- rho_uv
AR(1) autoregressive parameter for latent positions
- sigma_uv
Innovation standard deviation for latent positions
- s2
Dyadic variance
- shrink
Whether to apply shrinkage
- symmetric
Whether network is symmetric
- rho
Dyadic correlation of the (i, j) and (j, i) residual pair
- max_abs
Optional positive coordinate bound; nonpositive or infinite values disable it. Each actor conditional respects the bound.