First of all, because you have version 10, you can considerably simplify this by using
mapped dates. This is out of a (modernized) version of the Chan-Maheu programs:
*
* The data are daily with holiday skips. This maps the year, month,
* day information to provide the dates.
*
cal(julian=%julianfromymd(year,month,day))
*
set r = 100.0*logret
*
* year:p gives entry <<p>> in the indicated year, so 1930:1 is the
* start of 1930, while 1985:1 is the first in 1985, so subtracting
* one from that gives the last entry in 1984.
*
compute start1930=1930:1,end1984=1985:1-1
For a specific date (rather than the above, which are for the first date and last date in a year), you can just use 2012:6:18 rather than having to find the entry with year(t)=2012..and.month(t)==6.and.day(t)==18.
If you are trying to graph the lambda_t from several different models, you'll have to copy the information to a unique series name for each after you're done with the estimation of it such as
set lambda_simple = lambda_t
after estimating the simple ARJI model.
You have a problem with this, as you are saying vfields=3, but you are including four graphs, so your first pane will be overwritten.
spgraph(vfields=3,footer="Figure 4")
scatter(header="(a) In Sample R",style=lines)
# codeddate r 4 end2014
scatter(header="(b) Lambda",style=lines)
# codeddate lambda_t 4 end2014
scatter(header="(c) Theta",style=lines)
# codeddate theta_t 4 end2014
scatter(header="(c) Delta",style=lines)
# codeddate deltasq_t 4 end2014
* set onestep = sqrt(h+lambda_t*(theta_t^2+deltasq_t))
* scatter(header="(c) One-step-ahead standard deviation",style=lines)
* # codeddate onestep 4 end2014
spgraph(done)
Use GRAPH rather than SCATTER with those (all the way through). The mapped dates will give you the year numbers on the axis.