plot_intensity: Plot force of infection

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Plot force of infection

Usage

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

Arguments

events

List of 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(events = c(0, 2, 5, 6, 7), T_max = 10, kernel = exp_kernel,
    parameters = list("alpha" = 1, "delta" = 1, "delay" = 0))
plot_intensity(events = c(0, 2, 5, 6, 7), T_max = 10, kernel = ray_kernel,
    parameters = list("alpha" = 1, "delta" = 1, "delay" = 0))
plot_intensity(events = c(0, 2, 5, 6, 7), 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.