add_surveillance_event: add_surveillance_events

View source: R/init.R

add_surveillance_eventR Documentation

add_surveillance_events

Description

Add surveillance events

Usage

add_surveillance_event(
  model,
  i,
  t = 1,
  n = 1,
  events = as(model@events, "data.frame")
)

Arguments

model

The model object

i

the node to add a surveillance event to

t

the timepoint that you want to do surveillance

n

the number of animals to seed

events

A dataframe of the events the default is just to extract them from the model object.

Details

A method for adding surveillance events to the model. These are events of Event type == 1 that increment the BL or BM compartments at a specific time point. These require select = 9 for blood sampling of adults and select = 10 for bulk milk sampling. When these units are added to the model they are redistributed to the appropriate test status by the simulator.

Value

a paratb model object with some extra events

Author(s)

Thomas Rosendal


trosendal/paratb documentation built on Oct. 7, 2022, 3:42 p.m.