pp_diag: Summarise diagnostics for point process models

Description Usage Arguments Value Examples

View source: R/pp_diag.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pp_diag(object, events)

## Default S3 method:
pp_diag(object, events)

## S3 method for class 'hp'
pp_diag(object, events)

## S3 method for class 'mmhp'
pp_diag(object, events)

## S3 method for class 'mmpp'
pp_diag(object, events)

## S3 method for class '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

1
2
3
hpp_obj <- pp_hpp(lambda = 1)
events <- pp_simulate(hpp_obj, end = 50)
pp_diag(hpp_obj, events)

ppdiag documentation built on Aug. 12, 2021, 5:07 p.m.