simulate_attack_rates: Simulate attack rates

View source: R/simulate_data.R

simulate_attack_ratesR Documentation

Simulate attack rates

Description

Given a number of possible infection years, simulates attack rates from a log normal distribution with specified mean and standard deviation.

Usage

simulate_attack_rates(
  infection_years,
  mean_par = 0.15,
  sd_par = 0.5,
  large_first_year = FALSE,
  big_year_mean = 0.5,
  n_groups = 1
)

Arguments

infection_years

the number of infection years

mean_par

the mean of the log normal

sd_par

the sd of the log normal

large_first_year

simulate an extra large attach rate in the first year?

big_year_mean

if large first year, what mean to use?

n_groups

defaults to 1, otherwise gives an attack rate vector for each group

Value

a matrix of attack rates for each group

See Also

Other simulation_functions: simulate_data(), simulate_infection_histories()


seroanalytics/serosolver documentation built on Aug. 18, 2024, 12:46 p.m.