Description Usage Arguments Details Value
View source: R/component_samplers.R
Compue one draw of the unconditional mean mu in an AR(1) model assuming a
Gaussian prior (with mean zero).
1  | sampleARmu(yt, phi_j, sigma_tj, priorPrec = NULL)
 | 
yt | 
 the   | 
phi_j | 
 the   | 
sigma_tj | 
 the   | 
priorPrec | 
 the   | 
Sample the unconditional mean mu using the model
y_tj = mu_j + phi_j(y_{t-1,j} - mu_j) + e_tj,
with e_tj ~ N(0, sigma[j]^2) and prior mu ~ N(0, 1/priorPrec[j])
The p x 1 matrix of unconditional means.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.