RE: AR process with missing lags
Posted: Fri Aug 05, 2011 12:17 am
Hello,
I want to create a while loop, within which a variable is regressed on all possible permutations of itself lagged 4 times. Rather than writing these 16 combinations out separately, I'd like to write them in a form that uses only one regressor term, like:
Clearly, for this example, I could write
But how could I deal with this one...
... without reverting to two separate regressor terms?
Thanks,
Nikhil
I want to create a while loop, within which a variable is regressed on all possible permutations of itself lagged 4 times. Rather than writing these 16 combinations out separately, I'd like to write them in a form that uses only one regressor term, like:
Code: Select all
eq1.ls pi pi(1 2 3 4)Code: Select all
eq1.ls pi pi(to -4)Code: Select all
eq1.ls pi pi(1 2 4)Thanks,
Nikhil