get_rates: Calculate Averaged lambda and xi Rates for Individuals in a...

View source: R/get_rates.R

get_ratesR Documentation

Calculate Averaged lambda and xi Rates for Individuals in a Network

Description

Wrapper to apply single_id_rate to all individuals in a network and calculate the mean number of days individuals took to leave their respective home states and the mean number of days individuals took to return to their respective home states.

Usage

get_rates(sched, sim)

Arguments

sched

a schedule object for a network from simulate_schedule()

sim

the simulator used to generate the schedule

Examples


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

get_rates(sched = obj, sim = "independent")


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