Raw data files:
Code: Select all
*
* Analysis of money demand function from Nelson C. Mark & Donggyu Sul,
* 2003, "Cointegration Vector Estimation by Panel DOLS and Long-run
* Money Demand," Oxford Bulletin of Economics and Statistics, vol. 65,
* no. 5, 655-680.
*
* Program to rearrange data from three separate data files
*
cal(panelobs=40)
all 19//40
*
* Rearrange the data, which are in a T x N block with a separate file
* for each.
*
dec rect ydata(40,19) xdata(40,19) zdata(40,19)
open data y.dat
read(unit=data) ydata
open data x.dat
read(unit=data) xdata
open data z.dat
read(unit=data) zdata
*
set realm = %vec(ydata)(t)
set realy = %vec(xdata)(t)
set rate = %vec(zdata)(t)
*
open copy panelmoneyx.xls
copy(format=xls,org=columns,nodates)