Re: [R] Negbin Error Warnings

2009-12-30 Thread Peter Ehlers
Perhaps this will give a clue: rpois(1,-1) [1] NaN Warning message: In rpois(1, -1) : NAs produced # (lambda needs to be nonnegative) -Peter Ehlers Clara Brück wrote: Hi, I ran a negative binomial regression (NBR) using the Zelig-package and the negbin model. When I then try to use the sim

Re: [R] Negbin Error Warnings

2009-12-30 Thread milton ruser
Dear Clara, could you, please, share the summary() of your data. bests milton 2009/12/30 Clara Brück > Hi, > > I ran a negative binomial regression (NBR) using the Zelig-package and the > negbin model. > When I then try to use the simumlation approach using the setx () and sim() > functions t

[R] Negbin Error Warnings

2009-12-30 Thread Clara Brück
Hi, I ran a negative binomial regression (NBR) using the Zelig-package and the negbin model. When I then try to use the simumlation approach using the setx () and sim() functions to calculate expected values and first difference for different levels of one of my independent variables, I get 50