open data9-9 list xlist = nocars pop Y price primert #The following two lines pass the values #of the tramodir and tramo executable path #as defined by default in gretl preferences. #You can also change this using for example #string tramodi = "/home/etpdihei/gretl/tramo" #string tram = "/usr/bin/tramo" sprintf tramodi "@tramodir" sprintf tram "@tramo" include tl-linwin.inp scalar linux=1 loop foreach i xlist --quiet genr $i_a = tramolin($i, 1976, 1, linux) endloop