Simulate: Generate a certain number of temporal observation from the...

Description Usage Arguments Details Value

View source: R/nsimulations.R

Description

Temporal oservation using the contact type model.

Usage

1
2
3
4
Simulate(param, grid_lines, pop_grid, grid_size = 5000,
  age_level = c(1, 1), age_dist = c(1, 0), m_start = 1,
  t_max = 118, t_intervention = 365, EI_model = 1, kern_model = 4,
  times, obs, nsim)

Arguments

param

Indicating a data frame containing a vector of parameters including:

epsion

The primary infection rate. See func_time_beta

beta_0

Baseline or average transmission rate. See func_time_beta

beta_1

Amplitude of the seasonality. See func_time_beta

alpha1,alpha2

The dispersal kernel parameters.

mu_lat,var_lat

mean and variance of the latent period. See E_to_I for details.

t0

Time at which the primary source became active

.

omega

Period of the forcing. See func_time_beta

gama

The mean proportion of short range dispersal events.

.

pop_grid

Population density of the grid a case resides. This is filled from bottom to top, then left to right.

grid_size

Grid resolution //@inheritParams circle_line_intersections

age_level

Vectors of age level and the propportion of each age group respectively. See details.

age_dist

Vectors of age level and the propportion of each age group respectively. See details.

m_start

The size of initial cases. Default is 1.

t_max

Final observation time.

t_intervention

Start of the intervention if any.

EI_model

Take integer values to specify the type of model used for the latent period. See E_to_I

kern_model

Take integer values to specify the type of dispersal kernel used. See Samp_dis

obs

The obervation requiered from during the period time

nsim

The total size of the simulation requierd.

time

The sequence of time at which the observation will occure.

Details

Simulate Count the number of observation during a certain period.

Value

A data frame with the time, observation made and the nth simulation.


holaanna/contactsimulator documentation built on Dec. 2, 2019, 2:39 a.m.