generate_toy_inc: Toy step incidence generator

Description Usage Arguments Value See Also Examples

View source: R/model.R

Description

Given an probability of infection, generates a uniform distribution giving probability of infection on each day. From day 0 to t0, has 0 probability of infection. t0 to t1 has finite probability. t1 to end has 0 probability.

Usage

1
generate_toy_inc(p_inf, end, t0, t1)

Arguments

p_inf

Proportion of populatino that should become infected

end

final day of the vector (ie. length)

t0

first day of possible infection

t1

last day of possible infection

Value

vector with probability of infection on each day

See Also

generate_toy_inc

Examples

1
generate_toy_inc(0.4, 200, 50, 150)

jameshay218/serosim2 documentation built on May 18, 2019, 11:21 a.m.