Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Regression Equation in ZINB regression


From   Muhammad Anees <anees@aneconomist.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Regression Equation in ZINB regression
Date   Mon, 19 Sep 2011 11:20:13 +0500

First check if you have installed -zinb-properly. You can also install
by -ssc install zinb- if you do not have the -zinb- installed.
Now you can use the command as  zinb countvariable
independentvariables, inflate(ifcountiszerovariable) and the option
could be understood from help files as" inflate(varlist[,
offset(varname)]|_cons) specifies the equation that determines whether
the observed count is zero.  Conceptually, omitting inflate() would be
equivalent to fitting the model with nbreg".
I hope this gives what I have results. My example is as following
which is what you are looking for,

zinb ncigs  age agesq male maritalstat4 maritalstat5 maritalstat6,
inflate(avariable)
Zero-inflated negative binomial regression        Number of obs   =       4219
                                                  Nonzero obs     =       4206
                                                  Zero obs        =         13

Inflation model = logit                           LR chi2(6)      =     418.97
Log likelihood  = -14584.76                       Prob > chi2     =     0.0000

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
ncigs        |
         age |   .0504214   .0046583    10.82   0.000     .0412914    .0595515
       agesq |  -.0499255   .0055059    -9.07   0.000    -.0607168   -.0391341
        male |   .1286974    .016588     7.76   0.000     .0961855    .1612092
maritalstat4 |   .0028357   .0225372     0.13   0.900    -.0413363    .0470078
maritalstat5 |   .1708232   .0425668     4.01   0.000     .0873938    .2542526
maritalstat6 |   .0595684    .030313     1.97   0.049      .000156    .1189808
       _cons |    1.53228   .0867213    17.67   0.000     1.362309     1.70225
-------------+----------------------------------------------------------------
inflate      |
    anxiety2 |   .3245785    1.27854     0.25   0.800    -2.181314    2.830471
       _cons |  -6.473971   .5815617   -11.13   0.000    -7.613811   -5.334131
-------------+----------------------------------------------------------------
    /lnalpha |  -1.520717    .029843   -50.96   0.000    -1.579209   -1.462226
-------------+----------------------------------------------------------------
       alpha |   .2185551   .0065223                      .2061382    .2317199
------------------------------------------------------------------------------


On Mon, Sep 19, 2011 at 12:04 AM, rachel grant
<rachelannegrant@gmail.com> wrote:
> I have searched the help files but I cannot understand how to get
> Stata to display the regression equation.
> If anyone is able to help, without referring me to manual, it would be
> really appreciated.
>
> --
> regards, Rachel Grant
> *
> *   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/
>



-- 


Regards

Anees

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index