Hm...
something strange, this doesn't work:

<script>
open data9-7
"Model 1" <- ols 1 0 2 3
"Model 2" <- ols 1 0 2 3 4 5
u1 = "Model 1".$uhat
u2 = "Model 1".$uhat
print u1 u2 -o
</script>

What is funny, commands <"Model 1".show> and <"Model 2".show> work!

Marcin

Allin Cottrell pisze:
On Thu, 12 Jun 2008, Marcin B?a?ejowski wrote:

  
I wonder is it possible to retrive '$yhat' series from model 
saved in session by command.

Suppose we have "Model Foo" in our session. We can for example 
view this model by "Model Foo".show command. But maybe there 
could be command like "Model Foo".yhat (and "Model Foo".uhat), 
which would give us series.
    

You can do that, but you need to use the '$' accessor:

open data9-7
m1 <- ols 1 0 2 3
m2 <- ols 1 0 2 3 4 5
u1 = m1.$uhat
u2 = m2.$uhat
print u1 u2 -o

Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users

  


-- 
Marcin Błażejowski
http://www.wrzosy.nsb.pl/~marcin/
GG# 203127