h_nr_simulate: Simulation functions Simulate numbers of cases with symptoms...

Description Usage Arguments Value Author(s)

View source: R/simulate.R

Description

Returns a matrix (that's how I first did it), so modify at some point to return dataframe.

Usage

1
h_nr_simulate(num_cases = 100, k = 2, lambda = 9, N = 30, seed = 42)

Arguments

num_cases

how many cases to simulate

k

shape parameter of Weibull delay function

lambda

scale parameter of Weibull delay function

N

maximum day of reporting, days start at 0

seed

seed for random number generator

Value

h_nr matrix of number of cases, with h_nr[n+1, r+1] corresponding to h_nr (since n and r start at 0)

Author(s)

Andrew Edwards


andrew-edwards/rightTruncation documentation built on Jan. 18, 2021, 7:43 p.m.