El 16/12/10 18:39, Laurent Schuermans escribió:
Dear all,
In econometric classen, we use gretl along with the Principles of
Econometrics handbook. Now we have to write a paper and do research
about a subject of own interest while using gretl.
The problem however is that I don't know how to recode variables in
gretl. I have a bunch of dichotomious variables with categories 1 and 2
that I want to recode to 0 and 1, which is easier for interpretation,
but I don't know how to do this.
Can somebody help me out?
If X is your variable with values 1 and 2, in a script or in gretl
console (/Tools/Gretl console) run:
Y= (X==2) ? 0 : 1
--
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