Saving the R-Squared of Vector Autoregression.

For questions regarding programming in the EViews programming language.

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

geoanstats
Posts: 10
Joined: Wed Oct 03, 2018 8:58 am

Saving the R-Squared of Vector Autoregression.

Postby geoanstats » Wed Oct 23, 2019 12:11 pm

I am trying to save some data members of the VAR object, but I am getting an error. I've tried:

scalar val =(var_name).@r2
scalar val =@r2(var_name)

both return the same error:

Error Message: No equation in memory

How do I retrieve the data members from a VAR?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13317
Joined: Tue Sep 16, 2008 5:38 pm

Re: Saving the R-Squared of Vector Autoregression.

Postby EViews Gareth » Wed Oct 23, 2019 12:53 pm

Code: Select all

scalar val = var_name.@r2(1)


That will retrieve the first r-squared.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: Google [Bot] and 36 guests