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(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------