pc_hawkessim-methods: A method to simulate nonstationary Hawkes models.

pc_hawkessim-classR Documentation

A method to simulate nonstationary Hawkes models.

Description

A S4 method that takes as an input a simHawkes object and outputs a simulated nonstationary Hawkes model. The formulation of the of the piecewise constant ACD model is given in the simHawkes class.

Usage

pc_hawkessim(object)

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

Arguments

object

a simHawkes object

Value

Returns an object of simHawkes class containing a simulated piecewise constant Hawkes 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.hawk.obj <- new("simHawkes")
pw.hawk.obj@cp.loc <- c(0.5)
pw.hawk.obj@lambda_0 <- c(1,2)
pw.hawk.obj@alpha <- c(0.2,0.2)
pw.hawk.obj@beta <- c(0.7,0.7)
pw.hawk.obj@horizon <- 1000
pw.hawk.obj <- pc_hawkessim(pw.hawk.obj)
ts.plot(pw.hawk.obj@H)
ts.plot(pw.hawk.obj@cH)

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