Description Usage Arguments Details Value
For mean shifts detection in a univariate time series. These functions can handle metadata.
1  | bmdl.eta(X, month, eta, meta, p, fit, penalty, nu, a, b1, b2, period)
 | 
X | 
 A vector of length   | 
month | 
 A vector of length   | 
eta | 
 A 0-1 indicator vector of length   | 
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.  | 
 To compute BMDL, use fit = 'marlik' and penalty = 'bmdl'.
 To compute automatic MDL, use fit = 'lik' and
penalty = 'mdl'.
 To compute BIC, use penalty = 'BIC' (the fit argument
does not matter in this case).
 Note, the marginal likelihood fit = 'marlik' can also be
combined with penalty = 'uniform', which assigns uniform prior on
the model space.
mdl | 
 The Bayesian MDL score for the changepoint model   | 
phi | 
 A vector of length   | 
sigmasq | 
 The EB estimator of the white noise variance   | 
mu | 
 A vector of length   | 
s | 
 A vector of length   | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.