[R] Distribution fitting problem

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Wed Nov 2 14:58:58 CET 2005


Hi, Mark,

Not without seeing you data. You only provide the first value is a 
warning message below.

--sundar

Mark Miller wrote:
> Can you advise another distribution, was thinking of exponential, but was 
> advised poisson since independent, forgot about requiring integers
> 
> 
> On Wednesday 02 November 2005 14:44, you wrote:
> 
>>Mark Miller 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
>>
>>Hi, Mark,
>>
>>If you think the data are poisson, the observations should be integers.
>>
>>--sundar




More information about the R-help mailing list