Hi,
I am trying to run restrict command on time series from panel sub-sample, but I got the
message
"Can't do: the current data set is different from the one on which the reference
model was estimated dataset is subsampled, model is not."
However, I could get the result when I copy the sub-sample into new file although some
missing values still exist.
Is this the expected behavior?
How to make restrict command works in this sub-sample?
Thank you,
Yuniarto Hadiwibowo
<script>
open paneldata
#Panel#
panel rd 0 rf
restrict
b2=1
end restrict
#Individual#
loop i=1..4 --quiet
smpl code=$i --restrict --replace
printf "\n\nCode $i\n"
ols rd 0 rf --robust
restrict
b2=1
end restrict
end loop
</script>
----- Original Message ----
From: Sven Schreiber <svetosch(a)gmx.net>
To: Gretl list <gretl-users(a)lists.wfu.edu>
Sent: Thu, December 17, 2009 9:23:23 PM
Subject: Re: [Gretl-users] sub-sampling panel data
Allin,
I'm not sure I understand...
Allin Cottrell schrieb:
3) However, the requirement at point 2 is in a sense "formal":
some of the time-series observations may be composed of NA
(missing) values.
ok, so it's not really a balanced panel then in the usual sense of the
term, right?
4) Therefore, when a user sub-samples in a way that would
"naturally" destroy the panel structure of the data, we offer the
"--balanced" option as a means of reconstituting the panel
structure. This necessarily involves "padding" the observations
for least some of the cross-sectional units with missing values.
so that sounds to me like --balanced doesn't really give you a balanced
panel, it "just" sets equal matrix dimensions. I would have expected
that --balanced does something like finding the least common denominator
(wich may involve discarding lots of observations of course). But I
admit I haven't read the documentation... feel free to tell me that I
should do that first.
cheers,
sven