Am 29.06.2010 16:02, schrieb Allin Cottrell:
>> smpl 1961 1980 # not sure if this works here [...]
> Sven's idea is fine, but that last "smpl"
line will work only for
> time-series data. Let's suppose you have a variable called "year"
> in your data set which identifies the year. (If you don't already,
> you can easily construct one, e.g. "year = time + 1960").
Actually as a goal (2.0-ish?) I think it would be nice if sample
restrictions worked better with panel data. For example, something like:
smpl 1960 1980 --idtime=year
would ideally leave the cross-sectional dimension alone and restrict the
time dimension as was intended above.
setobs unitcount year --panel-vars
smpl 1960 1980 --time-dim
if you know what I mean. Just so that it becomes more natural to "slice"
the twodimensional data.
Haven't thought this through much though...