Re: [R] Warning with mle

2011-01-28 Thread Antje Niederlein
Hi Ben, thanks a lot for your answer. > There are four reasonable solutions to your problems: > > 1. ignore the warnings, as long as they are all of the > same type (NaNs/NAs being produced by dbinom or dpois), > and as long as the final results look sensible. probably fine for me. The fit for

Re: [R] Warning with mle

2011-01-28 Thread Antje Niederlein
Hi Ben, thanks a lot for your answer. > There are four reasonable solutions to your problems: > > 1. ignore the warnings, as long as they are all of the > same type (NaNs/NAs being produced by dbinom or dpois), > and as long as the final results look sensible. probably fine for me. The fit for

Re: [R] Warning with mle

2011-01-27 Thread Ben Bolker
Antje Niederlein yahoo.de> writes: [snip] > But what goes wrong if I want to display confidence intervals? I get a > lot of warnings but I simply don't know why... > > confint(fit) > > Has it something to do with constraints for my parameters (lambda > should be > than zero and prop should r

[R] Warning with mle

2011-01-27 Thread Antje Niederlein
Hi there, I'm pretty new to the field of fitting (anything). I try to fit a distribution with mle, because my real data seems to follow a zero-inflated poisson distribution. So far, I tried a simple example to see whether I understand how to do it or not: # example count data x <- 0:10 y <- dpois