plot_intensity_imported: Plot force of infection for imported events

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Plot force of infection for imported events

Usage

1
2
3
4
5
6
7
8
9
plot_intensity_imported(
  events,
  imported_events,
  T_max,
  kernel,
  parameters,
  mu_fn = mu_none,
  parent_indexes = NULL
)

Arguments

events

List of event times

imported_events

List of imported event times

T_max

Maximum time to plot

kernel

Kernel.

parameters

Parameters of the Hawkes kernel

mu_fn

Function for exogenous intensity (some examples are given in R/mu.R)

parent_indexes

Index of parent if known

Value

Plot of force of infection.

Examples

1
2
3
4
5
6
plot_intensity_imported(events = c(0, 2, 5, 6, 7), imported_events = c(2, 6), T_max = 10,
    kernel = exp_kernel, parameters = list("alpha" = 1, "delta" = 1, "delay" = 0))
plot_intensity_imported(events = c(0, 2, 5, 6, 7), imported_events = c(2, 6), T_max = 10,
    kernel = ray_kernel, parameters = list("alpha" = 1, "delta" = 1, "delay" = 0))
plot_intensity_imported(events = c(0, 2, 5, 6, 7), imported_events = c(2, 6), T_max = 10,
    kernel = ray_kernel, parameters = list("alpha" = 1, "delta" = 1, "delay" = 5))

mrc-ide/epihawkes documentation built on Feb. 13, 2021, 10:20 a.m.