Re: [R] error estimating parameters with mle2

2012-04-18 Thread Ben Bolker
Joachim Audenaert pcsierteelt.be> writes: > When I try to estimate the functional response of the Rogers type I > equation (for the mle2 you need the package bbmle): > > > RogersIbinom <- function(N0,attackR2_B,u_B) {attackR2_B+u_B*N0} > > RogersI_B <- > mle2(FR~dbinom(size=N0,prob=RogersIbino

[R] error estimating parameters with mle2

2012-04-18 Thread Joachim Audenaert
Hi all, When I try to estimate the functional response of the Rogers type I equation (for the mle2 you need the package bbmle): > RogersIbinom <- function(N0,attackR2_B,u_B) {attackR2_B+u_B*N0} > RogersI_B <- mle2(FR~dbinom(size=N0,prob=RogersIbinom(N0,attackR2_B,u_B)/N0),start=list(attackR2_B=