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

st: Re: Change the time period when estimating in Panel Data


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: Re: Change the time period when estimating in Panel Data
Date   Fri, 14 Feb 2003 15:27:53 -0600

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.

Scott


----- Original Message -----
From: "Vincent" <[email protected]>
To: <[email protected]>
Sent: Friday, February 14, 2003 11:05 AM
Subject: st: Change the time period when estimating in Panel Data


> Dear STATA users,
>
> Thanks for all the solutions of converting 8.0 data
> set to 6.0 data set.
>
> I have a new question.
> In Panel data, sometimes we want to estimate a shorter
> time period than the time spans in the data set. It
> seems to me that the "in" option does not work. What
> can I do if I want to estimate say 1977:1 to 1998:10
> with same number of groups while the time span is
> 1972:1 to 2002:12 in the data set.
>
> Thanks a lot.
>
> Vincent
>
>


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index