Page 1 of 1

loop with dates / panel

Posted: Thu Sep 03, 2020 11:48 am
by fi99ggb
Hello

I have a panel dataset and I want to run a loop to sequentially increase the time dimension of the sample like:

for !i = 1 to 12
smpl @first 2012M12+!i
...estimate equation
next

I am bit confused but it looks like this does not increase the time dimension of the sample. Is that right? And is there an efficient way to address this?

Thanks
George

Re: loop with dates / panel

Posted: Thu Sep 03, 2020 1:54 pm
by EViews Gareth
That's exactly what it does.

Code: Select all

wfcreate m 2010 2015 10 series y=nrnd series x=nrnd table samples for !i = 1 to 12 smpl @first 2012M12+!i equation eq!i.ls y c x samples(!i,2) = eq!i.@smpl samples(!i,1) = !i next show samples