Description Usage Arguments Details Value See Also

simulate data for predator preferences model

1 |

`S` |
number of prey species |

`T` |
number of time periods |

`J` |
scalar or vector (of length T) number of predators caught at each time |

`I` |
scalar or vector (of length T) effective number of traps at each time |

`lambda` |
matrix of rates at which predator eats prey species; TxS |

`gamma` |
matrix of rates at which prey species is seen in habitat; TxS |

`EM` |
boolean specifying test of EM algorithm |

Both lambda and gamma must be specified as a matrix with rows indexing time and columns indexing the number of species.

A list consisting of two dataframes, eaten and caught, made
specifically for the function `predPref`

.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.