[Gretl-users] change frequency

Allin Cottrell cottrell at wfu.edu
Wed Nov 18 13:47:50 EST 2009

On Wed, 18 Nov 2009, Sven Schreiber wrote:

> yes, menu Data -> Compact Data
> (or similar, I'm just translating back from my German version
> right now) gives you a dialog window where you can choose weekly
> and Monday.
> The command-line version would be
> dataset compact ....
> where I'm not sure of the parameters in this case, not having
> much experience with weekly data.

It might also be worth noting that you can do this sort of thing
(or generalizations of it) easily with basic script commands.

nulldata 60
# fake daily data
setobs 5 1 --time-series
series x = normal()
genr time
genr mondum = (time % 5 == 1)
print time mondum x -o
smpl mondum --dummy
setobs 52 1 --time-series
print time mondum x -o
store weekly.gdt

Allin Cottrell

More information about the Gretl-users mailing list