Learn R Programming

lame (version 1.3.4)

.actor_ffbs_path: Univariate Carter-Kohn FFBS for one actor's length-T slope path

Description

Given period-wise sufficient statistics (Ht = sum_j X^2_ij / s2, ht = sum_j X_ij R_ij / s2) and AR(1) hyperparameters, returns one joint draw from the posterior N(m, P) where the prior is AR(1) and the observation is the Gaussian likelihood implied by (H, h).

Usage

.actor_ffbs_path(H, h, rho_actor, sigma_actor2)

Value

list with theta (length-T draw) and V (length-T marginal posterior variance per period -- needed for the exact centering projection).

Arguments

H

length-T vector of period-wise observation precisions

h

length-T vector of period-wise observation cross-products

rho_actor

AR(1) coefficient

sigma_actor2

AR(1) innovation variance