PG
Periklis Gogas
Associate Professor
of Economic Analysis and International Economics
Department of Economics, Democritus University of
Thrace
Associate Editor - Journal of Economic Asymmetries
Euro Area Business Cycle Network - Fellow
The Rimini Centre for Economic Analysis - Fellow
The Society for Economic Measurement - Member
Institute for Nonlinear Dynamical Inference (INDI) - Charter Fellow
On Thu, 31 Jan 2019, Periklis Gogas wrote:
> I am working on oil prices "WTI"
> Is it possible to create within Gretl a dummy that takes the value 1 when
> WTI goes up and 0 when WTI goes down?
>
> For example within Excel for a column A that contains WTI it is something
> like IF(A2>A1,1,0).
Something like
<hansl>
series WTIdum = diff(WTI) > 0
</hansl>
should do.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti@univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users