Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Poisson regression - stratified


From   Ricardo Ovaldia <ovaldia@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Poisson regression - stratified
Date   Mon, 8 Mar 2004 06:46:09 -0800 (PST)

Never mind, I figure it out. All I need to do is to
include the strata as dummies in the model.

 . xi:poisson x i.stratum d1 d2   


Thanks,
Ricardo.

--- Ricardo Ovaldia <ovaldia@yahoo.com> wrote:
> Dear Stata users,
> 
> Is there a way to fit a Poisson regression to
> stratified data? 
> 
> For example I have the following dataset:
> 
> . cl  x  i1 i2 stratum
> 
>              x         i1         i2    stratum
>   1.        27          0          1          1
>   2.        18          0          1          2
>   3.        12          1          0          2
>   4.        15          0          1          2
>   5.        14          1          0          2
>   6.         9          1          0          3
>   7.         8          1          0          3
>   8.        13          0          0          4
>   9.        11          0          1          4
>  10.        26          1          0          4
>  11.         3          1          0          5
>  12.         5          1          0          5
>  13.        10          0          0          5
>  14.         7          0          0          5
>  15.         1          0          0          6
> 
> Where –x- is a count, d1 and d2 are dummies, and
> stratum is a stratification variable.
> 
> I would like to fit
> 
> . poisson x d1 d2   <-- stratified by –stratum-
> 
> Any suggestions?
> 
> Thank you in advance,
> Ricardo
> 
> 
> =====
> Ricardo Ovaldia, MS
> Statistician 
> Oklahoma City, OK
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Search - Find what you’re looking for faster
> http://search.yahoo.com
> *
> *   For searches and help try:
> *  
> http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


=====
Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index