I am a new user trying to do a bivariate time series analysis, but my commands must be wrong because I keep getting an error message. I am trying to produce a cross-correlation function (with 5 lags) and Q-statistics for the residuals of two pre-whitened series. Any help would be greatly appreciated.
calendar 1960
allocate 2006:1
open data C:\Marie\Research\RAT_30 years later\DATA\RAT Data_nomiss.xls
data(format=xls, org=columns)
log actratio / lact
boxjenk(vcv, diffs=1, ma=2) lact / lactres
boxjenk(vcv, diffs=1, ma=1) robbery / robres
cross(qstats,corrs=rescorrs) robres lactres / 0 5
graph(style=bargraph,qstats, nodates,number=0,key=upright, $ header='cross-correlation - robres and lactres, $
hlabel='lag',max=1.0,min=-1.0) 1
# rescorrs
end
