My apologies, I did mean February to April and not March to April, which
does not help.
" [...] works for the March-April selection, it doesn't work for the second
variant, February-March-April, since that does not have a fixed
number of
observations per year. In the latter case you'd have to drop back to a
custom frequency-1 time series
setobs 1 1 --special-time-series
after sub-sampling on the months in question, to turn the data into what
gretl takes to be a time series. "
In this situation, do you mean I should
subsample each year individually,
and then turn that into a time-series ? Having sampled February-April over
my 10-year period, this command has no effect on the structure of the data
set.
You may be interested in knowing I am working on a climatalogy project,
which involves studying recurring meteorological events over several years.
For this I only need the period of year at which said phenomenon generally
occurs, however the data I order (from Meteoswiss, as it were) is structured
in such a way that I cannot request only the same three-month period over
many years - for one year it works all right, but for more they just send
you the whole yearly series.
Thank you very much for your help, I was completely unaware of the $obsminor
function. I am ashamed to say I am quite useless in matters IT.
Marc O'Callaghan
--------------------------------------------------
From: "Allin Cottrell" <cottrell(a)wfu.edu>
Sent: Friday, December 11, 2015 7:07 PM
To: "Gretl list" <gretl-users(a)lists.wfu.edu>
Subject: Re: [Gretl-users] Help regarding time series
On Thu, 10 Dec 2015, Marc O'Callaghan wrote:
> In a time series which comprises daily entries over 10 years, how may I
> select a certain period of each year, i.e. only March-April for instance
> ?
[...]
> I then proceeded to restrict based on the criterion month >= 2 && month
> <= 4
[...]
Ah, I see that while my answer at
http://lists.wfu.edu/pipermail/gretl-users/2015-December/011398.html
works for the March-April selection, it doesn't work for the second
variant, February-March-April, since that does not have a fixed number of
observations per year. In the latter case you'd have to drop back to a
custom frequency-1 time series
setobs 1 1 --special-time-series
after sub-sampling on the months in question, to turn the data into what
gretl takes to be a time series.
> As this is surely not an over-the-top functionality [...]
Well, it's extremely unusual! Selecting only certain days in the week to
form a time series is quite standard -- provided it's the 5 weekdays or
the 5 plus Saturday -- but selecting only certain months in the year is
something I've never heard of.
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users