Learn R Programming

BayesChange (version 2.3.0)

print.DetectCpObj: DetectCpObj print method

Description

The DetectCpObj method prints which algorithm was run.

Usage

# S3 method for DetectCpObj
print(x, ...)

Arguments

x

an object of class DetectCpObj.

...

parameter of the generic method.

Examples

Run this code

data("eu_inflation")

params_uni <- list(a = 1, b = 1, c = 1, prior_var_phi = 0.1,
                   prior_delta_c = 1, prior_delta_d = 1)

out <- detect_cp(data = eu_inflation[1,], n_iterations = 1000,
                 n_burnin = 100, q = 0.5, params = params_uni,
                 kernel = "ts")
print(out)

Run the code above in your browser using DataLab