On Tue, 8 Dec 2009, Marcin Błażejowski wrote:

> Hi,
> let's run following script:
>
> ---
> nulldata 2000
> setobs 6 2003/01/03 --time-series
> series X = normal()
> series Y = normal(1,10)
> ---
> and try to compact data...
>
> But for 5 or 7 day week this option is visible.
> Current CVS.

Bug acknowledged. However, the data compaction operation can be done (the 
command "dataset compact 52" works fine). It's a GUI bug, easily fixed:

Index: gui2/menustate.c
===================================================================
RCS file: /cvsroot/gretl/gretl/gui2/menustate.c,v
retrieving revision 1.112
diff -u -r1.112 menustate.c
--- gui2/menustate.c    2 Dec 2009 15:45:17 -0000       1.112
+++ gui2/menustate.c    8 Dec 2009 18:51:39 -0000
@@ -177,8 +177,8 @@

  #define COMPACTABLE(d) (d->structure == TIME_SERIES && \
                          (d->pd == 4 || d->pd == 12 || \
-                         d->pd == 5 || d->pd == 7 || \
-                         d->pd == 24))
+                         d->pd == 5 || d->pd == 6 || \
+                         d->pd == 7 || d->pd == 24))

  #define EXPANSIBLE(d) (d->structure == TIME_SERIES && (d->pd == 1 || d->pd == 
4))



Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche

r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti

Reply via email to