Dear Ignacio,
At first I would like to thank you for your answer. The data I'd sent is
only an illustrative example of a potential problem. I think it would be
better if Gretl shows an error message instead of appending the data
with incorrect dates.
In my humble opinion the best solution would be the correct recognition
of the dates of the series "incomplete", with Gretl inserting NAs in the
period 01/07/2008 to 31/07/2008.
This is only a suggestion, once I have no idea of the necessary coding
effort.
Um abraço,
Henrique
2010/10/28 Ignacio Diaz-Emparanza <ignacio.diaz-emparanza(a)ehu.es>
El 27/10/10 22:23, Henrique Andrade escribió:
> Dear Gretl Team,
>
> Today I'd tried to use the "append" command to add a new series to my
> session. The series start at 2008/06/04 and end at 2010/10/19. They are
> the same, with the exception that the second one, called "ìncompleto",
> does not have the observations from July 2008 (more exactly, from
> 01/07/2008 to 31/07/2008).
>
> Please take a look at the following commads:
>
> open completo.gdt
> append incompleto.gdt
>
> The sequence above gives me a very odd result. Originally, both the
series
> end in 2010/10/19, but after the "append" command, the series
"incompleto"
> is ending at a different date: 2010/09/16.
>
> I hope I was clear enough. Sometimes English language is hard for me :-(.
>
> Best regards,
> Henrique C. de Andrade
> Doutorando em Economia Aplicada
> Universidade Federal do Rio Grande do Sul
>
www.ufrgs.br/ppge <
http://www.ufrgs.br/ppge>
Henrique,
I remember in principle "append" was designed to add new variables with
exactly the same dates as your current dataset. But now I see in the
manual this behaviour has been flexibilized in the las times.
The manual for the append command says:
"The appended data may take the form of either additional observations
on variables already present in the dataset, or new variables. in the
case of adding variables, compatibility requires
either (a) that the number of observations for the new data equals that
for the current data, or
(b) that the new data carries clear observation information so that
gretl can work out how to place the values."
a) is the traditional way of working for the "append" command. I am sure
Allin may clarify this, but probably b) is more recent and is not much
tested. May be you have discovered a bug.
In any way, opening (directly) your file incomplete.gdt I am surprised
because, for the missing data, in displaying the values (right click and
"show values") I was expecting to see the label of the date and
"NA",
but I find this:
incompleto
2008/06/04 454.76
2008/06/05 457.05
2008/06/06 460.57
2008/06/09 459.68
2008/06/10 457.57
2008/06/11 461.75
2008/06/12 461.82
2008/06/13 464.89
2008/06/16 465.95
2008/06/17 465.50
2008/06/18 467.82
2008/06/19 467.73
2008/06/20 469.86
2008/06/23 470.55
2008/06/24 471.01
2008/06/25 471.65
2008/06/26 477.66
2008/06/27 478.21
2008/06/30 476.69
2008/08/01 457.77
2008/08/04 448.58
2008/08/05 447.56
...
May be the error is in the way you have defined this series, or in the
way the series have been saved?
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.ea3.ehu.es
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel
--
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul