Skip to contents

Fits the four (kernel, baseline) combinations corresponding to the two endpoints of the Kwan-Chen-Dunsmuir framework: classical exponential / constant Markovian, against gamma / sinusoidal non-Markovian. Faster to run than the full 8-way comparison and suitable for dashboard surfaces.

Usage

morie_tps_hawkes_markovian_vs_nonmarkovian(df, ds_name = "?", max_n = 4000L)

Arguments

df

Data frame with OCC_DATE or REPORT_DATE.

ds_name

Dataset name used in titles.

max_n

Maximum events to fit.

Value

A morie_rich_result from morie_tps_compare_hawkes_kernels restricted to the 2x2 sub-grid.

References

Kwan TKJ, Chen F, Dunsmuir WTM (2024). arXiv:2408.09710.

Examples

if (FALSE) { # \dontrun{
  df <- morie_tps_load_tps_dataset("Assault", nrows = 2000)
  rr <- morie_tps_hawkes_markovian_vs_nonmarkovian(df,
                                                    ds_name = "Assault")
} # }