simulate_schedule: Simulate a Network of Continuous-Time Movement Descriptions

View source: R/simulate_schedule.R

simulate_scheduleR Documentation

Simulate a Network of Continuous-Time Movement Descriptions

Description

Generates a continuous-time-movement description for each individual in a simulated network according to the rules set forth by the chosen simulator. Returns a list of data.frames.

Usage

simulate_schedule(
  n_animals,
  n_groups,
  n_splits = NA,
  time_to_leave,
  time_to_return,
  travel_time,
  sampling_duration,
  simulator = "independent"
)

Arguments

n_animals

the number of animals in the network

n_groups

the number of social groups and/or distinct patches in the population

n_splits

if using the non-independent simulator. Integer value or NA. If an integer value, the number of sub-groups to split into when moving. If NA (default) larger groups will split into larger subgroups.

time_to_leave

the average number of days spent at home prior to leaving

time_to_return

the average number of days spent away from home prior to returning

travel_time

a list of two values in terms of days. These are the limits for draws from a uniform distribution governing how long it will take to get from one group to another.

sampling_duration

the number of days to simulate.

simulator

the simulator to use. One of: "independent", "non-independent", or "group-think".

Examples


obj <- simulate_schedule(n_animals = 15,
                         n_groups = 3,
                         time_to_leave = 5,
                         time_to_return = 2,
                         travel_time = c(0.001, 0.2),
                         sampling_duration = 20,
                         simulator = "independent")


gavincotterill/modulr documentation built on Nov. 30, 2022, 11:15 p.m.