Page 1 of 1

Placing F stat to vector

Posted: Thu Oct 11, 2018 1:19 pm
by vytama
Hello, I am running a loop with with 10 different regressions. I want to capture F-stat from each regression in a vector. How can achieve it? if I use rowplace(vector_F, eq1.@f ), it gives me am error "scalar sent to function which expects matrix". How can I list all 10 F-stats in one vector? Thanks

Re: Placing F stat to vector

Posted: Thu Oct 11, 2018 1:45 pm
by EViews Matt
Hello,

Assuming you've named your equation objects eq1 through eq10, you can use something like the following:

Code: Select all

vector(10) vector_F
for !i = 1 to 10
    vector_F(!i) = eq!i.@f
next

Re: Placing F stat to vector

Posted: Thu Oct 11, 2018 1:54 pm
by vytama
perfect, thank you.