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: year-fixed effects in monthly panel
From
Abhimanyu Arora <[email protected]>
To
[email protected]
Subject
Re: st: year-fixed effects in monthly panel
Date
Mon, 14 Feb 2011 17:27:53 +0100
Thanks very much Maarten.
On Fri, Feb 11, 2011 at 3:03 PM, Maarten buis <[email protected]> wrote:
> --- On Fri, 11/2/11, Abhimanyu Arora wrote:
>> Is there any option in the -xt- commands that could allow
>> me to control for year in a panel with month as the time
>> unit?
>
> You just make a variable that represents the year and use
> that in your favourite -xt- command. Assuming your time
> variable is called time and is stored as %tm (see
> -help dates and times-) you can create that year variable
> as folows:
>
> gen year = year(dofm(time))
>
> Hope this helps,
> Maarten
>
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
>
> http://www.maartenbuis.nl
> -------------------------
>
>
>
>
> *
> * 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/