Scott Merryman [mailto:[email protected]] wrote
> Sent: Friday, February 14, 2003 4:28 PM
> To: [email protected]
> Subject: st: Re: Change the time period when estimating in Panel Data
>
>
> How about using the -if- condition.
>
> For example:
> . webuse grunfeld
>
> . xtreg inv mva if year < 1950 & year >1939, fe
>
> would restrict the sample to the 1940s out of the data set
> that ranges from 1935 to 1954.
which is equivalent to
. webuse grunfeld
. tsset firm year, yearly
. xtreg inv mva if tin(1940,1949), fe
Patrick Joly
[email protected]
[email protected]
*
* 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/