The fact that you are getting a negative Hessian, usually means that the estimates are worthless.
I also don't understand your using continuous data with a discrete model. Both programs ought to
give you an error right here and refuse to run. When you say they can handle it, it suggests that
you have exceeded the assumpltions of the model (and the program) and I am not surprised that
you have meaningless results. You should be using a lognormal or a gamma for the continuous data.
You did not include the results - I am rather concerned about the goodness of fit to the NB. The data may be simple,
but it does not seem to be Negative Binomial at all - especially if you conceptualize it as an overdispersed Poisson
or a Poisson-Gamma mixture. Specifically, there are no 0's, yet there should be.
I would strongly suggest that you think through what your assumptions are and choose a model that conforms to
them. E.g., your discrete models are binary. And examine the diagnostics carefully.
Ray
-------------------------------------------
Raymond Hoffmann, PhD
Professor
Medical College of Wisconsin
-------------------------------------------
Original Message:
Sent: 01-10-2014 10:21
From: Nikita Tuzov
Subject: Negative Binomial regression: discrepancy between SAS and R
As I already mentioned, the problem is very similar regardless of whether one does or does not round the response: R generated a very large positive theta, and SAS generates a negative k.
Nik