Update dynamic latent positions with heavy-tailed (Student-t) AR(1) innovations
Source:R/RcppExports.R
rUV_dynamic_t_fc_cpp.RdLike rUV_dynamic_fc_cpp but each AR(1) innovation is Student-t rather than
Gaussian, via a scale-mixture: the innovation for u[t, i] has variance
sigma^2 / lambda[t, i] with lambda[t, i] distributed as
Gamma(nu/2, nu/2). The first period is Student-t of the same degrees of
freedom and scale sigma / sqrt(1 - rho^2), with variance
sigma^2 / ((1 - rho^2) lambda[1, i]). Provides a
continuous heavy-tailed alternative to the discrete snap-shift model.
Usage
rUV_dynamic_t_fc_cpp(
U_current,
V_current,
ET,
rho_uv,
sigma_uv,
s2,
nu,
lambda_u,
lambda_v,
shrink,
symmetric,
rho = 0,
max_abs = -1
)Arguments
- U_current
Current 3D array of U positions (n x R x T)
- V_current
Current 3D array of V positions (n x R x T)
- ET
3D array of residuals (n x n x T)
- rho_uv
AR(1) autoregressive parameter
- sigma_uv
Innovation scale
- s2
Dyadic variance
- nu
Student-t degrees of freedom
- lambda_u
Current local scales for U (n x T)
- lambda_v
Current local scales for V (n x T)
- shrink
Whether to apply shrinkage
- symmetric
Whether network is symmetric
- rho
Dyadic correlation of the (i, j) and (j, i) residual pair
- max_abs
Optional positive coordinate bound; nonpositive or infinite values disable it. Each actor conditional respects the bound.