Description Usage Arguments Value
Two proposals: the function txtn.MH.flip
propose to flip a random
dimension, and the function txtn.MH.swap
propose to swap between a
category 4 (no changes in either series) and a catogory 1-3 (change in at
least one series).
1 2 3 | txtn.MH.flip(X, month, current, meta, p, nu, alpha1, alpha2, period, q)
txtn.MH.swap(X, month, current, meta, p, nu, alpha1, alpha2, period)
|
X |
A |
month |
A vector of length |
current |
A list of current changepoint model. Specifically,
|
meta |
A 0-1 indicator vector of length |
p |
The order of the VAR process. |
nu |
Prior variance scale of |
alpha1 |
The parameter in the Multinomial-Dirichlet prior of |
alpha2 |
The parameter in the Multinomial-Dirichlet prior of |
period |
Period of the seasonal cycle, 12 for monthly data and 1 for annual data. |
q |
A 4 by 4 transition matrix of the proposal distribution, only used in the flip proposal. |
A list of current changepoint model. Specifically,
list(eta, count.eta, inference, change.eta)
, where inference
is the output of the function txtn.eta
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.