sim_toad | R Documentation |
The simulation function for the toad example.
sim_toad(params, ntoad, nday, model = 1L, d0 = 100)
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. |
A data matrix.
sim_toad(c(1.7,36,0.6), 10, 8, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.