sim_toad {BSL} | R 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, |

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

[Package

*BSL*version 3.2.5 Index]