Hi,
suppose we have two functions: Foo and foo.
We pass a named list to function Foo, which body contains line with call
of function foo and foo takes as an argument series not list, for which
computes simple ols (example code below). Where is the problem? Function
foo doesn't even run ols, so no accesors are available and we get error.
So the question is: can we do such crazy nests?
Marcin
<script>
function foo (series *X)
ols X const time
series X_uh = $uhat
return series X_uh
end function
#
function Foo (list Y_list)
loop foreach i Y_list
foo(&Y_list.$i)
end loop
end function
#########################################
set echo on
nulldata 100
setobs 1 1 --time-series
genr X = normal()
list test = X
Foo(test)
</script>
--
Marcin Błażejowski
http://www.wrzosy.nsb.pl/~marcin/
GG# 203127