Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

re:RE: st: unconditional fixed effect logit


From   Christopher Baum <[email protected]>
To   <[email protected]>
Subject   re:RE: st: unconditional fixed effect logit
Date   Sun, 30 Jan 2011 13:07:02 -0500

<>
> Sorry, but I didn't quiet understand.
> I want to know how I can run unconditional fixed effect logit, controlling for unobserved firm effects,
> when my data structure is firm-country-year, not firm-year.
> 
> I didn't quiet get how egen helps me do that.


If you have firm-country-year data, and want to convert it into (firm+country)-year data, you need a variable identifying each distinct combination of firm and country so that you can xtset the data by (i) and (t). To create such a variable, which then becomes the (i), use egen combo = group(firm country) and then you may use combo in xtset.

Kit

Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index