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: st: time and sector dummies


From   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   Re: st: time and sector dummies
Date   Tue, 26 Apr 2011 11:27:07 -0400

There are a couple ways to do this. If you have Stata 11, the easiest
way would be to do something like:

xtreg y x1 x2 i.timevar##i.industryvar

This is called factor variables in Stata.

DVM

On Tue, Apr 26, 2011 at 11:18 AM, Sangalli Ilaria
<[email protected]> wrote:
> Dear all,
>
> I have to estimate a panel data model based on firm data, which contain time dummies (to account for business cycle effects) and
> sectorial dummies (to control for industry effects).
>
> I would like to make an interaction between time dummies and sector dummies in order to generate new dummies that control for
> specific components which vary across firms and time.
>
> How can I generate these dummies using a unique string of commands?
> I would avoid repeating the same interaction command for each combination of time/industry dummies.
>
> Thanks for the support.
>
> Ilaria Sangalli
>
> Research Department
> Intesa Sanpaolo SpA
>
> Prima di stampare, pensa all'ambiente ** Think about the environment before printing
>
> Il presente messaggio, inclusi gli eventuali allegati, ha natura aziendale e potrebbe contenere informazioni confidenziali e/o riservate. Chiunque lo ricevesse per errore, è pregato di avvisare tempestivamente il mittente e di cancellarlo.
> E’ strettamente vietata qualsiasi forma di utilizzo, riproduzione o diffusione non autorizzata del contenuto di questo messaggio o di parte di esso.
> Pur essendo state assunte le dovute precauzioni per ridurre al minimo il rischio di trasmissione di virus, si suggerisce di effettuare gli opportuni controlli sui documenti allegati al presente messaggio. Non si assume alcuna responsabilità per eventuali danni o perdite derivanti dalla presenza di virus.
>
> ***
> This email (including any attachment) is a corporate message and may contain confidential and/or privileged and/or proprietary information. If you have received this email in error, please notify the sender immediately, do not use or share it and destroy this email. Any unauthorised use, copying or disclosure of the material in this email or of parts hereof (including reliance thereon) is strictly forbidden.
> We have taken precautions to minimize the risk of transmitting software viruses but nevertheless advise you to carry out your own virus checks on any attachment of this message. We accept no liability for loss or damage caused by software viruses.
> For the conduct of investment business in the UK, the Company is authorized by Bank of Italy and regulated by the Financial Services Authority.
>
> *
> *   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index