Description Usage Arguments Value
Two proposals: the function bmdl.MH.flip proposes to flip a random
dimension, and the function bmdl.MH.swap propose to swap between a
randomly chosen zero and a randomly chosen one.
1 2 3 | bmdl.MH.flip(X, month, current, meta, p, fit, penalty, nu, a, b1, b2, period)
bmdl.MH.swap(X, month, current, meta, p, fit, penalty, nu, a, b1, b2, period)
|
X |
A vector of length |
month |
A vector of length |
current |
A list of current changepoint model. Specifically,
|
meta |
A 0-1 indicator vector of length N, metadata indicator.
The first |
p |
The order of the AR process. |
fit |
For likelihood calculation, |
penalty |
For penalty function calculation, |
nu |
Prior variance scale of |
a |
The first and second parameters in the Beta-Binomial prior; only
used if |
b1 |
The b parameter in the Beta-Binomial prior of η, for un-documented times (i.e., times not in metadata). Default value is 239 for monthly data, and 19 for annual data. |
b2 |
The b parameter in the Beta-Binomial prior of η, for documented times (i.e., times in metadata). Default value is 47 for monthly data, and 3 for annual data. |
period |
Period of the seasonal cycle, 12 for monthly data, or 1 for annual data. |
A list of current changepoint model. Specifically,
list(eta, inference, change.eta), where inference is the
output of the function bmdl.eta.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.