# set parameters
Predators <- Traps <- 100
PreySpecies <- 2
Times <- 5
g <- matrix(sqrt(2), nrow=Times, ncol=PreySpecies) # gamma
l <- matrix(seq(0.4,1.8,length.out=5)*sqrt(2), nrow=Times, ncol=PreySpecies) # ct
# fit model
## Not run:
# fdata <- simPref(PreySpecies, Times, Predators, Traps, l, g, EM=FALSE)
# predPref(fdata$eaten, fdata$caught, hypotheses=c('ct', 'cst'))
# ## End(Not run)
Run the code above in your browser using DataLab