powered by
The simulation function for the toad example.
sim_toad(params, ntoad, nday, model = 1L, d0 = 100)
A data matrix.
A vector of proposed model parameters, \(\alpha\), \(gamma\) and \(p_0\).
The number of toads to simulate in the observation.
The number of days lasted of the observation.
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.
Characteristic distance for model 3. Only used if model is 3.
sim_toad(c(1.7,36,0.6), 10, 8, 1)
Run the code above in your browser using DataLab