compensator_differences | R Documentation |
Extract the compensator differences from a fitted Hawkes model.
compensator_differences(obj)
obj |
A fitted model object returned by |
show_hawkes_GOF
## ********************** ###
## A univariate Hawkes model
### ********************** ###
data(retweets_niwa, package = "stelfi")
times <- unique(sort(as.numeric(difftime(retweets_niwa, min(retweets_niwa), units = "mins"))))
params <- c(mu = 0.05, alpha = 0.05, beta = 0.1)
fit <- fit_hawkes(times = times, parameters = params)
compensator_differences(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.