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
)

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?

Value

a vector of attack rates

See Also

Other simulation_functions: simulate_data(), simulate_group(), simulate_individual_faster(), simulate_individual(), simulate_infection_histories()


seroanalytics/serosolver documentation built on April 10, 2024, 3:28 p.m.