Placing F stat to vector

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Placing F stat to vector

Postby vytama » Thu Oct 11, 2018 1:19 pm

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

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: Placing F stat to vector

Postby EViews Matt » Thu Oct 11, 2018 1:45 pm

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

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Re: Placing F stat to vector

Postby vytama » Thu Oct 11, 2018 1:54 pm

perfect, thank you.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 25 guests