Hello all,
I am currently trying to predict out-of-sample values after using a panel SAR. Here is the example code:
spmatrix create contiguity W if tm == 1
spxtregress y x
predict y if e(sample) == 1 (In sample prediction)
predict y2 if e(sample) == 1 (out of sample prediction)
error: id() in time 13 is inconsistent with W
As you can see, I can predict within the sample but not outside of it.
I am currently trying to predict out-of-sample values after using a panel SAR. Here is the example code:
spmatrix create contiguity W if tm == 1
spxtregress y x
predict y if e(sample) == 1 (In sample prediction)
predict y2 if e(sample) == 1 (out of sample prediction)
error: id() in time 13 is inconsistent with W
As you can see, I can predict within the sample but not outside of it.
Comment