pc_acdsim-methods: A method to simulate nonstationary ACD models.

pc_acdsim-classR Documentation

A method to simulate nonstationary ACD models.

Description

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.

Usage

pc_acdsim(object)

## S4 method for signature 'ANY'
pc_acdsim(object)

Arguments

object

a simACD object

Value

Returns an object of simACD class containing a simulated piecewise constant ACD time series.

References

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.

Examples

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)

eNchange documentation built on June 25, 2025, 1:08 a.m.