Generate diagnostic tools for different point process models, including quantile-quantile plot, ks plot, raw residual and pearson residual.

pp_diag(object, events)

# S3 method for default
pp_diag(object, events)

# S3 method for hp
pp_diag(object, events)

# S3 method for mmhp
pp_diag(object, events)

# S3 method for mmpp
pp_diag(object, events)

# S3 method for hpp
pp_diag(object, events)

Arguments

object

a point process model

events

event times

Value

Invisibly returns NULL. Outputs plots and summary of diagnostics to console

Examples

hpp_obj <- pp_hpp(lambda = 1) events <- pp_simulate(hpp_obj, end = 50) pp_diag(hpp_obj, events)
#> #> Raw residual: 0.2583418 #> Pearson residual: 0.2583418 #> #> One-sample Kolmogorov-Smirnov test #> #> data: r #> D = 0.11131, p-value = 0.5289 #> alternative hypothesis: two-sided #>