Description Details Author(s) References Examples
Models predator preferences over an array of time and prey species
Package: | spiders |
Type: | Package |
Version: | 1.0 |
Date: | 2014-04-30 |
License: | GPL |
Edward A. Roualdes <edward.roualdes@uky.edu>
Reliability Estimates for Ivlev's Electivity Index, the Forage Ratio, and a Proposed Linear Index of Food Selection Richard E. Strauss Transactions of the American Fisheries Society Vol. 108, Iss. 4, 1979
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## make up some numbers
Predators <- 20
Traps <- 20
PreySpecies <- 3
Times <- 12
ST <- Times*PreySpecies
l <- matrix(1:ST, nrow=Times, ncol=PreySpecies)
g <- matrix(2*(1:ST), nrow=Times, ncol=PreySpecies)
## simulate data
fdata <- simPref(PreySpecies, Times, Predators, Traps, l, g)
## calculate model
(prefs <- predPref(fdata$eaten, fdata$caught))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.