Moving sample
Posted: Sat Mar 14, 2015 7:08 pm
Hi,
I'm wondering if there's a way to program an equation so that its estimation uses all data up to point of the next forecast. For example, right now I have one part of the sample (sample1) used to estimate the equation and the rest of the sample (sample2) to create the forecast. As here:
smpl sample1
equation eq1.ls y c x
smpl sample2
eq1.fit y_f
What I'd like to do is have the sample1 not be a fixed set of dates but all the data up to the point of the forecast, so it moves.
Any ideas?
Much appreciated and thanks in advance.
I'm wondering if there's a way to program an equation so that its estimation uses all data up to point of the next forecast. For example, right now I have one part of the sample (sample1) used to estimate the equation and the rest of the sample (sample2) to create the forecast. As here:
smpl sample1
equation eq1.ls y c x
smpl sample2
eq1.fit y_f
What I'd like to do is have the sample1 not be a fixed set of dates but all the data up to the point of the forecast, so it moves.
Any ideas?
Much appreciated and thanks in advance.