Thank you Martin and Carlo for your help I tried what you suggested
and if I understood correctly the confidence interval uses the normal
distribution to have the lowpred(lb) and the highpred(ub)?
thanks again.
Kacem
2009/3/27 Martin Weiss <[email protected]>:
>
> <>
>
> Would it be correct for Kacem to obtain CIs from -predictnl-? Maybe other
> lister can comment whether that is appropriate?
>
>
> *************
> webuse rod93, clear
> tab cohort, gen(coh)
>
> *negative binomial regression model
> nbreg deaths coh2 coh3, exposure(exp)
>
> predict pred, n
> predict linpred, xb
>
> *generate CI for predicted counts
> predictnl newpred = exp(xb())*exp, ci(lb ub)
>
> l deaths pred linpred newpred lb ub, noo
> *************
>
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von Carlo Lazzaro
> Gesendet: Freitag, 27. März 2009 10:30
> An: [email protected]
> Cc: [email protected]
> Betreff: st: R: Confidence Interval for Negative Binomial Regression
>
> Dear Kacem
> if -help nbreg postestimation- did not solve your problem, I would recommend
> you to take a look at Hilbe JM. Negative Binomial Regression. Cambridge
> University Press, 2007.
>
> This textbook includes a lot of example using Stata.
> Besides, the Author is a contributor of Statalist: I do hope he spots your
> message and reply you back with a Stata-code solution.
>
> Sorry I accnot be more helpful.
>
> Kind Regards,
> Carlo
> -----Messaggio originale-----
> Da: [email protected]
> [mailto:[email protected]] Per conto di [email protected]
> Inviato: giovedì 26 marzo 2009 20.42
> A: [email protected]
> Oggetto: st: Confidence Interval for Negative Binomial Regression
>
> Hello everyone,
> I hope that you can help me with a fairly urgent query. I have been
> looking all over for an answer and just do not seem to be able to find
> it... Please help if you can:
>
> How do I calculate the confidence interval for my prediction which was
> obtained by using negative binomial regression? I have tried the
> adjust command for postest but it gives me confidence intervals for xb
> not the dependent variable.
>
> Thank you in advance for any help or pointers you can give me.
> best, Kacem
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
--
Dr. Kacem Iaych
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/