Gibbs update of regression coefficients and additive effects for replicated relational data
Source:R/rbeta_ab_rep_fc.R
rbeta_ab_rep_fc.RdDraws jointly from the full conditional distribution of the regression
coefficients beta together with the additive sender/receiver
effects a and b, pooling the information contained in the
replicate slices of a longitudinal design that share a common
beta, a and b. The actor effects are eliminated
block by block over an orthonormal Helmert basis, the coefficients are
drawn from their marginal Gaussian conditional, and the actor effects are
then drawn given the coefficients. The coefficient prior is the g-prior
with g = n^2.
Arguments
- Z.T
n x n x T array of latent relations with multiplicative effects already removed; the third margin indexes the replicates
- Sab
Positive semidefinite actor covariance, including zero or singular directions for disabled or tied actor effects. Every positive scale is retained.
- rho
within-dyad (reciprocity) correlation
- X.T
n x n x p x T design array
- s2
dyadic variance
- center
Condition both actor margins to sum to zero.