Re: MLE of Negative Binomial Model



On Dec 19 2007, 9:01 am, burgera...@xxxxxxxxx wrote:
I'm attempting to write an algorithm (in Matlab) that estimates the
parameters in a negative binomial regression via Newton-Raphson
method.

My parameters are:
- Beta (coefficient vector for independent variables); and
- Theta ( = 1/alpha, where alpha is the dispersion parameter).

As initial values, I use Beta estimates from a Poisson model and a ML
estimate of Theta based on the response data only.

I am running into 2 problems:

1) While the algorithm works for simple datasets it seems quite
unstable for others, drifting away from the correct solution.
2) An output I require is the covariance matrix. I am calculating this
as the negative inverse of the Hessian, but in cases where my
algorithm finds the correct Beta & Theta, my covariance matrix does
not match what I expect (ie, the covariance matrix produced by
LIMDEP).

Does anyone know a more stable algorithm for the NB model or a way to
add stability to the Newton-Raphson approach?

Is my computation of the covariance matrix correct? How does LIMDEP
calculate the covariance matrix?

Thankyou in advance,
Sean

i am attempting to write a program in matlab to estimates the nubmer
of accidents on two lane rural roads.the dependent variable is
accident and the independent variables are carriageway width,road
condition,shoulder width,shoulder condition,land use,gradient number
of curves number of intersections,number of busstops,number of
curves.i don't know much about Mtalab.Could u please help me?
Sini C K
.



Relevant Pages

  • Re: MLE of Negative Binomial Model
    ... Beta (coefficient vector for independent variables); ... I use Beta estimates from a Poisson model and a ML ... While the algorithm works for simple datasets it seems quite ... An output I require is the covariance matrix. ...
    (sci.stat.math)
  • MLE of Negative Binomial Model
    ... I'm attempting to write an algorithm that estimates the ... parameters in a negative binomial regression via Newton-Raphson ... I use Beta estimates from a Poisson model and a ML ... An output I require is the covariance matrix. ...
    (sci.stat.math)
  • Re: slope test in linear regression with known intercept and known error variance
    ... Run a two-sample test based only on Y_1j, ... Then the LS estimate of beta is ... The varaince of betahat is ... Since the covariance matrix of Z is given as the identity matrix, ...
    (sci.stat.math)
  • Re: transformation of covariance matrix
    ... which you have the covariance matrix. ... In my question, alpha, beta, C are parameters ... matrix of mu and sigma. ...
    (sci.stat.math)
  • Statistics and Excel
    ... I have a multiple regression conformed by 2 independent variables. ... resolve the two beta and I want to put it in a 3D graph. ...
    (microsoft.public.excel.misc)

Quantcast