sim_toad: The simulation function for the toad example

View source: R/RcppExports.R

sim_toadR Documentation

The simulation function for the toad example

Description

The simulation function for the toad example.

Usage

sim_toad(params, ntoad, nday, model = 1L, d0 = 100)

Arguments

params

A vector of proposed model parameters, α, gamma and p_0.

ntoad

The number of toads to simulate in the observation.

nday

The number of days lasted of the observation.

model

Which model to be used. 1 for the random return model, 2 for the nearest return model, and 3 for the distance-based return probability model.

d0

Characteristic distance for model 3. Only used if model is 3.

Value

A data matrix.

Examples

sim_toad(c(1.7,36,0.6), 10, 8, 1)

BSL documentation built on Nov. 3, 2022, 9:06 a.m.