I think I formulated my question fuzzy


I mean, is it possible to have the following construction?

function type funcname(x1,x2,y, other parameters)
...
function body
mod1 <- ols y const x1 x2


end function



--- Оригінальне повідомлення ---
Від кого: "Allin Cottrell" <cottrell@wfu.edu>
Дата: 12 травня 2014, 01:27:48

On Sun, 11 May 2014, oleg_komashko@ukr.net wrote:

> Is it possible to create user-defined functions using named model 
> objects as local variables?

Named models are not (at this point) full citizens of the world of 
variables. They cannot be passed as arguments to a function. However 
you can create a bundle containing information pertaining to a model 
(for example the matrices $coeff and $stderr) and pass that to a 
function.

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