[Gretl-users] dummy variables

Ignacio Diaz-Emparanza ignacio.diaz-emparanza at ehu.es
Mon Nov 16 08:19:10 EST 2009


El lun, 16-11-2009 a las 00:35 -0500, Data Analytics Corp. escribió:
> Hi,
> 
> I have two question on how to create dummy variables.  Suppose...
> 
>    1. I have a time series of annual data, say from 1970 to 2000.  How
>       do I create a dummy for the period 1975-1980 (1 for this period, 0
>       otherwise)?

series mydummy = (obs>=1975 && obs<=1980)



-- 
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 




More information about the Gretl-users mailing list