pc_acdsim-class | R Documentation |
A S4 method that takes as an input a simACD
object and outputs a simulated nonstationary ACD(1,1) model. The formulation of the of the
piecewise constant ACD model is given in the simACD
class.
pc_acdsim(object)
## S4 method for signature 'ANY'
pc_acdsim(object)
object |
a simACD object |
Returns an object of simACD
class containing a simulated piecewise constant ACD time series.
Korkas, K.K., 2022. Ensemble binary segmentation for irregularly spaced data with change-points. Journal of the Korean Statistical Society, 51(1), pp.65-86.
pw.acd.obj <- new("simACD")
pw.acd.obj@cp.loc <- c(0.25,0.75)
pw.acd.obj@lambda_0 <- c(1,2,1)
pw.acd.obj@alpha <- rep(0.2,3)
pw.acd.obj@beta <- rep(0.7,3)
pw.acd.obj@N <- 3000
pw.acd.obj <- pc_acdsim(pw.acd.obj)
ts.plot(pw.acd.obj@x)
ts.plot(pw.acd.obj@psi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.