rbeta_ab_fc: Conditional simulation of additive effects and regression...

Description Usage Arguments Value Author(s)

View source: R/rbeta_ab_fc.R

Description

Simulates from the joint full conditional distribution of (beta,a,b) in a social relations regression model

Usage

1
2
rbeta_ab_fc(Z, Sab, rho, X = NULL, s2 = 1, offset = 0, iV0 = NULL,
  m0 = NULL, g = length(Z))

Arguments

Z

n X n normal relational matrix

Sab

row and column covariance

rho

dyadic correlation

X

n x n x p covariate array

s2

dyadic variance

offset

a matrix of the same dimension as Z. It is assumed that Z-offset follows a SRRM, so the offset should contain any multiplicative effects (such as U%*% t(V) )

iV0

prior precision matrix for regression parameters

m0

prior mean vector for regression parameters

g

prior variance scale for g-prior when iV0 is unspecified

Value

beta

regression coefficients

a

additive row effects

b

additive column effects

Author(s)

Peter Hoff


pdhoff/amen documentation built on June 14, 2018, 3:20 p.m.