marcushemma wrote:How would that look if you want to create indices, with reference to a specific entry, e.g. 2000:1, for a number of series?
I tried a number of variations based on a do loop with the series as i = 1,n but that didn't work.
Any suggestions?
dofor i = dpfood dpvice dpdura
set(scratch) i = i{0}/([series] i)(1950:1)
end do ical 1959 1 4
all 2001:1
OPEN DATA "\Enders\Money_dem.xls"
DATA(FORMAT=XLS,ORG=COLUMNS) 1959:01 2001:01 DATE GDP RGDP M2 M3 TB3mo TB1yr
open data a:\money_dem.xls
data(org=obs,format=xls)
dofor i = gdp rgdp m2 m3
set i = i{0}/([series] i)(1960:1)
end do i
GRAPH(STYLE=LINE,KEY=BELOW) 4
# GDP
# RGDP
# M2
# m3
pri / gdp rgdp m2 m3
Return to Data: Reading, Writing, Transforming
Users browsing this forum: No registered users and 0 guests