single_id_rate: Get the lambda and xi rates for a single individual

View source: R/single_id_rate.R

single_id_rateR Documentation

Get the lambda and xi rates for a single individual

Description

Takes an individual's continuous-time movement description and calculates the average number of days until it leaves its home state and the average number of days until it returns to its home state.

Usage

single_id_rate(sub_sched, sub_id, sim)

Arguments

sub_sched

the individual's continuous time description

sub_id

the individual's id string

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")

single_id_rate(sub_sched = obj[[1]], sub_id = names(obj)[[1]], "independent")


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