Re: [R] Help with multiple poisson regression with MLE2

2010-02-01 Thread elena daniela concepcion
Ben, thanks a lot for your quick reply. Scales of x1 and x2 covariates were too different and this fact may have caused some problem. I have made them similar by dividing one of them by 1000 and now the analysis works. Best regards, Elena 2010/2/1 Ben Bolker > elena daniela concepcion gmail.c

Re: [R] Help with multiple poisson regression with MLE2

2010-02-01 Thread Ben Bolker
elena daniela concepcion gmail.com> writes: > > Hi, I'm trying to make multiple poisson regressions with the MLE2 command. > I have used the following expression, but I receive an error message: > > poisfit <- mle2(y ~ dpois(exp(b0 + b1*x1 + b2*x2)), start=list(b0=1, b1=1, > b2=1), data=data1)

[R] Help with multiple poisson regression with MLE2

2010-02-01 Thread elena daniela concepcion
Hi, I'm trying to make multiple poisson regressions with the MLE2 command. I have used the following expression, but I receive an error message: poisfit <- mle2(y ~ dpois(exp(b0 + b1*x1 + b2*x2)), start=list(b0=1, b1=1, b2=1), data=data1) Error in optim(par = c(1, 1, 1), fn = function (p) : non