simNSMHP: Simulate a (bivariate) non-stationary multivariate Hawkes process (NSMHP)
Description
Simulate a bivariate non-stationary multivariate Hawkes process (NSMHP) with
given given baseline intensity functions and self-excitation functions using
the cascading structure of the process.
Self-exciting function for type one events given the parent is a type two
event.
g12
Cross-exciting function for type one events given the parent is a type two
event.
g21
Cross-exciting function for type two events given the parent is a type one
event.
g22
Self-exciting function for type two events given the parent is a type two
event.
Value
offspr1
All offspring events of type one
offspr2
All offspring events of type two
Details
The function works by simulating generation 0 events according to independent
Poisson processes with the baseline intensity functions; then keep simulating
future generation events as long as the number of the previous generation
events of any type is non-zero. For each event type, we simulate these events
according to M independent Poisson processes with the appropriate excitation
intensity. When this recursive process stops, return events of all generations
with their respective type labels as the events of the NSMHP on the interval
(0,T].