How can I retrieve statistics from a View of an object?

For questions regarding programming in the EViews programming language.

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

arturobandini
Posts: 8
Joined: Thu Jul 30, 2009 11:01 am

How can I retrieve statistics from a View of an object?

Postby arturobandini » Thu Jul 30, 2009 1:55 pm

Thank you so much for the quick answer!

I'm afraid I'm still stuck, though. Following your suggestion, I have now
freeze(table) ch1.wald c(4)=c(8)
vector supw(!j)=@val(table(6,4))

When I run the loop I get the alert: "TABLE already exists in "FREEZE(TABLE) ch1...", so I assume the table cannot be overwritten for each !j. Adding mode=overwrite allows me tu run the loop until the end, but the whole vector is filled with the same value (obviously Wald for the last j). I cannot figure out what I'm doing wrong...

Thanks again! Arturo

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

Re: How can I retrieve statistics from a View of an object?

Postby EViews Gareth » Thu Jul 30, 2009 2:04 pm

Nothing wrong with the code you posted:

Code: Select all

create u 100
series y=nrnd

equation ch1
vector(10) supw
for !i=1 to 10
ch1.ls y c rnd
freeze(mode=overwrite, table) ch1.wald c(1)=c(2)
vector supw(!i) = @val(table(6,4))
next


That code works fine.
Follow us on Twitter @IHSEViews

arturobandini
Posts: 8
Joined: Thu Jul 30, 2009 11:01 am

Re: How can I retrieve statistics from a View of an object?

Postby arturobandini » Thu Jul 30, 2009 2:25 pm

well everything seems to be ok now!
thanks a lot, this has been very helpful ;)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 38 guests