OK so how do I access $coeff estimate via GUI if I am trying to create a function package
that adds post estimation commands to the GUI.
Logan J. Kelly, Ph.D.
Assistant Professor, Department of Economics, University of Wisconsin-River Falls
Director, UWRF Center for Economic Research, http://www.uwrf.edu/cer
Section Editor, Global Business and Economics Review, http://www.inderscience.com/gber
23 D South Hall
College of Business and Economics
University of Wisconsin - River Falls
410 S. Third Street
River Falls, WI 54022-5001
-------- Original message --------
From: Allin Cottrell <cottrell(a)wfu.edu>
To: Gretl list <gretl-users(a)lists.wfu.edu>
Subject: Re: [Gretl-users] Define new variable in the GUI
On Wed, 20 Feb 2013, Logan Kelly wrote:
Question about the GUI:
When I execute
Save/Define New Variable (in a model tab after executing
OLS) and input in the text box:
Everything works fine, but when after running OLS I execute
Add/ Define New Variable (in the main window) and input in
the text box:
I get the following error message:
Invalid argument for function
'IAU': invalid argument for $coeff()
Is this expected behavior?
The error message is off (we'll look into fixing that), but
the basic point, namely that what you describe works in the
model window but not in the main window "Define New Variable"
dialog, is expected.
When you use a model-data accessor such as $coeff this refers
to the "last model". But what exactly does the "last model"
mean, when models can be estimated both by point-and-click and
by script or via the console? What we settled on some time ago
is that the "last model" position is occupied by the last
model estimated via script/console -- and in this case there's
presumably no "last model" in that sense. However, when you
use Add from the model window, the search for accessors is
directed to the model that's shown there, so it works.
Gretl-users mailing list