FR_Data_Sim | R Documentation |
Functional Response Experiment Simulation
FR_Data_Sim( afun, FRfun, a, a_sd, h, d, gamma, reps, N0s, Sizes, tval, deterministic = FALSE, logRE = TRUE )
afun |
Size-dependent attack rate function |
FRfun |
Hollings or Rogers |
a |
maximum attack rate |
a_sd |
random effect standard deviation |
h |
handling time |
d |
size at max attack rate |
gamma |
shape parameter for size dependence |
reps |
number of replicates (or blocks) in the experiment |
N0s |
vector of initial densities |
Sizes |
vector of size classes |
tval |
number of timesteps in experiment |
deterministic |
return probability instead of binomal RV |
logRE |
implement random effects on log scale |
sim1 <- FR_Data_Sim("Ricker","Rogers",a=1,a_sd=0.1, h=1,d=1,reps=10,N0s=seq(10,40,by=10),Sizes=1:10,tval=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.