Detect Change Points on an univariate time series.
detect_cp_uni(
data,
n_iterations,
q,
a = 1,
b = 1,
c = 0.1,
prior_var_phi = 0.1,
prior_delta_c = 1,
prior_delta_d = 1,
print_progress = TRUE,
user_seed = 1234L
)Function detect_cp_uni returns a list containing the following components:
$orders a matrix where each row corresponds to the output order of the corresponding iteration.
time computational time in seconds.
$sigma_MCMC traceplot for \(\sigma\).
$delta_MCMC traceplot for \(\delta\).
vector of observations.
number of MCMC iteration.
probability of performing a split at each iterations.
parameters of the Normal-Gamma prior for \(\mu\) and \(\lambda\).
parameters for the correlation coefficient in the likelihood.
parameters of the shifted Gamma prior for \(\delta\).
If TRUE (default) print the progress bar.
seed for random distribution generation.