sim_toad: The simulation function for the toad example

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

The simulation function for the toad example.

Usage

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

Arguments

params

A vector of proposed model parameters, α, γ and p0.

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

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

ziwenan/BSL documentation built on April 25, 2021, 1:11 p.m.