Description Usage Arguments Value
Compute the objective function of the model, i.e., log of posterior proablity for BMDL, or log MDL, and estimate model parameters.
1 2 |
x |
The time series data, a numeric vector of length |
A |
The design matrix for the nuisance coefficients in the linear model. It is usually the matrix of seasonal indicators, or the design matrix for harmonic regression with a column of all 1 for intercept. |
eta |
A multiple changepoint configuration, i.e., model. It is a 0/1
indicator vector of length |
xi |
Outliers indicator, a 0/1 vector of length |
p |
The order of the AR process. |
fit |
For likelihood calculation, |
penalty |
For penalty function calculation, |
nu |
Prior variance scale of |
kappa |
Prior variance scale of outliers. |
a, b |
The first and second parameters in the Beta-Binomial prior; only
used if |
scale_trend_design |
The factor multiplied to the design matrix of trend. Default is 1/50. |
weights |
A numeric vector of observation weights, defined the same as
the |
bmdl |
BMDL or MDL. |
s |
Estimates of nuisance coefficients in the linear model. It usually contains the seasonal means or coefficients of harmonic regression (with intercept). |
mu |
Estimates of regime-wise coefficients in the linear model. It usually contains the regime means and regime trends. |
sigmasq |
Estimate of σ^2 in the AR(p) process. |
phi |
Yule-Walker estimates of the AR(p) coefficients. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.