spiders-package: Fits predator preferences model.

Description Details Author(s) References Examples

Description

Models predator preferences over an array of time and prey species

Details

Package: spiders
Type: Package
Version: 1.0
Date: 2014-04-30
License: GPL

Author(s)

Edward A. Roualdes <edward.roualdes@uky.edu>

References

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

Examples

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

roualdes/spiders documentation built on May 27, 2019, 11:44 p.m.