rUV_fc: Gibbs sampling of U and V

View source: R/rUV_fc.R

rUV_fcR Documentation

Gibbs sampling of U and V

Description

A Gibbs sampler for updating the multiplicative effect matrices U and V

Usage

rUV_fc(Z, U, V, Suv, rho, s2 = 1, offset = 0)

Arguments

Z

n X n normal relational matrix

U

current value of U

V

current value of V

Suv

covariance of (U V)

rho

dyadic correlation

s2

dyadic variance

offset

a matrix of the same dimension as Z. It is assumed that Z-offset is equal to the multiplicative effects plus dyadic noise, so the offset should contain any additive effects (such as Xbeta(X,beta+ outer(a,b,"+") )

Value

U

a new value of U

V

a new value of V

Author(s)

Peter Hoff


amen documentation built on May 29, 2024, 9:58 a.m.