Am 26.07.2010 17:03, schrieb artur bala:
Thanx Ignacio,
Indeed, your script works fine whatever the time series frequency may be.
That points out another question: why is the same script <genr D = (t >
"2005:01")> working in monthly and quaterly data but failing in annual
data ? As long as we deal with time series it should result to the same
behavior regardless of the frequency.
AFAICS, because only for annual data it's ambiguous whether 2005 is an
index or an observation label.
Now, you might argue that once you write "2005" (with the double quotes)
in a script that indicates to gretl that it's not a number (not the
2005th obs.) but a label (the year named 2005). I don't remember whether
we discussed that case earlier. (But I tend to think it's better to
enforce the explicit version obsnum("2005") for the sake of clarity and
to avoid unwanted errors and side effects.)
cheers,
sven