Description Usage Arguments Value
Changes in both mean and linear trend, which permitting a global seasonal mean and AR(p) errors.
1 2 3 4 5 |
x |
The time series data, a numeric vector of length |
dates |
The dates records are observed, a |
iter |
Total number of MCMC iterations. |
thin |
Thinning; save one MCMC iteration for every |
weights |
A numeric vector of observation weights, defined the same as
the |
p |
The order of the AR process. |
time_unit |
Default is |
seasonal_means |
The seasonal means variables in the linear model.
Either |
k |
The highest degree of harmonic regression. It is only used if
the argument |
scale_trend_design |
The factor multiplied to the design matrix of trend. Default is 1/50. |
fit |
For likelihood calculation, |
penalty |
For penalty function calculation, |
nu |
Prior variance scale of |
kappa |
Prior variance scale of outliers. |
a |
The first and second parameters in the Beta-Binomial prior; only
used if |
b |
The first and second parameters in the Beta-Binomial prior; only
used if |
start_eta |
A vector of 0/1 indicators for the initial model, or
|
start_xi |
A vector of 0/1 indicators for the initial outliers, or
|
track_time |
Logical, whether to show runtime on screen. |
best |
The optimal model which minimizes BMDL or MDL; a list representing
the model, which contains components: |
eta_mcmc |
A matrix to save MCMC iterations of |
A |
The design matrix for the nuisance coefficients in the linear model.
It is usually the matrix of seasonal indicators, if the argument
|
runtime |
Runtime, in second. |
input_parameters |
A list of input parameters. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.