| beta_expectations | R Documentation |
Three expectations under q(\beta_i) and q(Z_i) appearing in the
updates for q(\sigma^2), q(\tau^2), and q(Z_{ki}).
expectedResidualSq computes the expected weighted residual sum of
squares E[(y_i - B_i\xi_i)^\top \Psi^{-1}(y_i - B_i\xi_i)] via a
quadratic-form plus trace decomposition. Uses prob[iter-1,] because
q(Z) has not yet been updated at the point this is called (Step 2).
expectedSumBetaSq computes
\sum_k(\text{Var}_{\beta_{ki}} + \mu_{\beta_{ki}}^2), appearing in
the q(\sigma^2) and q(\tau^2) updates.
expectedBetaSq computes the same residual quadratic form as
expectedResidualSq but with the k-th inclusion indicator fixed
at candidate value z \in \{0,1\}, used in the q(Z_{ki}) update.
B |
List of |
i |
Integer. Curve index. |
y |
List of observed curve vectors. |
mu |
Matrix ( |
Sigma |
Array ( |
prob |
Matrix ( |
iter |
Integer. Current iteration index. |
psi |
Correlation matrix |
z |
Integer (0 or 1). Candidate inclusion value ( |
k |
Integer. Basis function index ( |
K |
Integer. Total number of basis functions ( |
A numeric scalar.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.