At 10:32 2/11/2005, you wrote:

>I am using the MASS library function
>
>fitdistr(x, dpois, list(lambda=2))
>
>but I get
>
>Error in optim(start, mylogfn, x = x, hessian = TRUE, ...) :
>         Function cannot be evaluated at initial parameters
>In addition: There were 50 or more warnings (use warnings() to see the first
>50)
>
>and all the first 50 warnings say
>
>1:  non-integer x = 1.452222
>etc
>
>Can anyone tell me what I am doing wrong. p.s. the data was read in from
>a .csv file that I wrote using octave

Mark,

Try fitdistr(x, "Poisson")

I think this is enough for fit Poisson distribuition for your data


Bernardo Rangel Tura, MD, MSc
National Institute of Cardiology Laranjeiras
Rio de Janeiro Brazil 


--

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to