Page 1 of 1

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

Posted: Thu Jul 30, 2009 1:55 pm
by arturobandini
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

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

Posted: Thu Jul 30, 2009 2:04 pm
by EViews Gareth
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.

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

Posted: Thu Jul 30, 2009 2:25 pm
by arturobandini
well everything seems to be ok now!
thanks a lot, this has been very helpful ;)