Skip to contents

Replaces the nested R loops for bipartite dynamic_uv in lame.R. Uses direct 2x2 inverse formula for common R=2 case.

Usage

rUV_dynamic_bip_fc_cpp(
  U_state,
  V_state,
  E,
  G,
  rho_uv,
  sigma_uv,
  s2,
  max_abs = -1
)

Arguments

U_state

3D array (nA x RA x T)

V_state

3D array (nB x RB x T)

E

3D array of residuals (nA x nB x T)

G

Interaction matrix (RA x RB)

rho_uv

AR(1) persistence parameter

sigma_uv

Innovation standard deviation

s2

Dyadic variance

max_abs

Optional positive coordinate bound; nonpositive or infinite values disable it. Each actor conditional respects the bound.

Value

List with updated U_cube, V_cube