Hello,
If I run the script
nulldata 10
smpl 6 10
series y=t
matrix my=y
smpl 1 5
series yy=my
print yy
in gretl 1.9.11 I get
gretl version 1.9.11
Current session: 2016-03-01 18:35
? nulldata 10
periodicity: 1, maxobs: 10
observations range: 1-10
? smpl 6 10
Full data range: 1 - 10 (n = 10)
Current sample: 6 - 10 (n = 5)
? series y=t
Generated series y (ID 2)
? matrix my=y
Generated matrix my
? smpl 1 5
Full data range: 1 - 10 (n = 10)
Current sample: 1 - 5 (n = 5)
? series yy=my
Generated series yy (ID 3)
? print yy
Current sample: 1 - 5 (n = 5)
6.00000 7.00000 8.00000 9.00000 10.0000
But if I run the same script in Gretl 2016a I get:
gretl version 2016a
Current session: 2016-03-01 18:36
? nulldata 10
periodicity: 1, maxobs: 10
observations range: 1 to 10
? smpl 6 10
Full data range: 1 - 10 (n = 10)
Current sample: 6 - 10 (n = 5)
? series y=t
Generated series y (ID 2)
? matrix my=y
Generated matrix my
? smpl 1 5
Full data range: 1 - 10 (n = 10)
Current sample: 1 - 5 (n = 5)
? series yy=my
Generated series yy (ID 3)
? print yy
Current sample: 1 - 5 (n = 0)
NA NA NA NA NA
In this context, is there a quick way of making the first 5 observations of series yy to equal the content of matrix my, like in older versions of Gretl?