Skip to contents

Draws 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.

Usage

rbeta_ab_rep_fc(Z.T,Sab,rho,X.T,s2=1,center=FALSE)

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.

Value

beta

regression coefficients

a

additive row effects

b

additive column effects

Author

lame authors