Thanks very much for this. It looks very good.
Quite often, I see in the default regression output that the names of
the stats and the values below them are not aligned correctly. I think
the spaces between the titles are predetermined and fixed in the pot
file, no?
So, I was wondering, can this be modified and used for tabulating all
types of regression results by default? This would increase the
overall polish of the program by a small but signifcant margin.
Cheers
Talha
On Mon, Sep 29, 2008 at 2:39 PM, Riccardo (Jack) Lucchetti
<r.lucchetti(a)univpm.it> wrote:
Dear all,
lately I found that when I write a script that does some kind of estimation,
most of the times I have to write a long and boring function to display the
results "nicely".
So I thought this kind of thing could be done once and for all via a
command. The patch you'll find attached[*] implements a "modprint"
command,
which I believe will turn out useful to people like me, Ignacio, Gordon,
Sven, Stefano, Franck etc.
In practice, once you have your estimates, you pack your estimated
coefficients and their standard errors in a nx2 matrix (call it X), store
their names in a string (call it parnames) using the comma as a separator
and issue the modprint command as follows
modprint parnames X
If you have additional statistics that you want printed, you collect them in
a column vector (call it addstats), which you specify as a third argument.
An example script is also attached, which should hopefully clarify what I
have in mind. Bear in mind this is still preliminary work; my main idea as
of now is to hear your comments.
Have fun!
---------------------------------------------------
[*] How do you apply the patch? Simple:
1) save the diff file somewhere. 2) from the unix shell, go to your gretl
source main directory (the one you run ./configure from)
3) be sure you have a fresh CVS source; run cvs up if necessary
4) issue the command
patch -p0 < /path/where/you/saved/the/diff/file/modprint.diff
5) run make etcetera
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel
--
"Remember not only to say the right thing in the right place, but far
more difficult still, to leave unsaid the wrong thing at the tempting
moment." - Benjamin Franklin (1706-1790)
--