I'm writing a tangent question on the intro to Eviews programming. I beleive it is the 4th program where a string loop is used to regress the variables on each other, then create a vector to store the respective r2s.
In the example...
Vector size: 10
Variables used: 5
I'm interested in writing a code for the general case( the case of regressing variables on each other); that is to say a case involving n regressors. So the point here is to replace:
Code: Select all
vector(10) r2sCode: Select all
vector(fancy math formula) r2sMaybe someone who has a good handle on math can share a tip to this extent?
Thank you
