quiet and silent confusion with "add ... --auto"
by Sven Schreiber
Hi, in the following example, "silent" is more verbose than "quiet",
which isn't right I think.
Very recent snapshot
thanks
sven
<hansl>
open denmark
ols LRM const --quiet
list L = IBO IDE
add L --auto=0.1 --quiet # no output
# reset
ols LRM const -q
add L --auto=0.1 --silent # -> more output than with --quiet
</hansl>
7 hours, 57 minutes
tooltip for right-clicking variables in model chooser
by Sven Schreiber
Hi, related to a request for more intuitive variable selection
(https://sourceforge.net/p/gretl/feature-requests/211/) we talked about
adding a tooltip that informs users that you can do a right-click on a
listed variable (e.g., in the OLS model spec dialog).
I looked at the code and found a kind of similar example related to the
Midas dialog, in gui/selector.c. In the function <static GtkWidget
*var_list_box_new> there is the statement:
if (locus == SR_RVARS2 && sr->ci == MIDASREG) {
gretl_tooltips_add(view, _("Select and right-click to edit
specification"));
Obviously, we need a different "locus" for our purpose, and we don't
want to be restricted to midas; so how about adding the following to an
already existing if-block in the mentioned function:
if (locus == SR_LVARS) {
/* left-hand box with the selectable vars */
... other instructions...
gretl_tooltips_add(view, _("Select and right-click to add to
regressor list"));
} ...
Would that already do the trick?
thanks
sven
2 days, 6 hours
string-valued series and string functions
by Sven Schreiber
Hi,
I know this is very much in the nice-to-have-but-not-strictly-necessary
category, but working with a cross-country panel where the country codes
are in a string-valued series, I must say it would be nice if functions
like instring() worked for those series. Instead I'm using a chain of
direct equality comparisons, which works fine, but gets a bit tedious.
Probably material for a request ticket.
cheers
sven
1 week, 1 day
search in script editor fails on last line
by Sven Schreiber
Hi,
maybe this is a GTK bug: Open a new script editor window, type a word,
say "hey" (unquoted), then hit ctrl+F to search something, type in (or
paste) the same word, hit return or click the looking glass, nothing is
found.
More generally, this seems to apply to the last line in a file. If a
type more stuff and search again, then the word (hey) is found.
I remember there were some gtk searching bugs before, but this is mildly
annoying. So the question is, is there something that gretl can do, like
upgrading to new library versions or so? This is a recent Windows snapshot.
thanks
sven
1 week, 2 days
dep var same as reg
by Sven Schreiber
Hi, not sure if the following is a bug or feature:
<hansl>
open banks91
ols Q2 const Q2
</hansl>
On a recent snapshot, this gives me a 1:1 regression result. That's not
wrong, strictly speaking, but if a regressor appears twice on the RHS, I
believe there's an error message. So shouldn't there be an error as well
if the LHS and RHS contain the same thing?
thanks
sven
2 weeks, 3 days
Sending data to python
by Riccardo (Jack) Lucchetti
Hi all,
I noticed that the "--send-data" option for the python variant of the
"foreign" command didn't actually do anything.
I just pushed to git a small modification so that a script like the
following works:
<hansl>
set verbose off
open mroz87.gdt
logs WW
summary WW l_WW --simple
foreign language=python --send-data
s = gretldata[['WW', 'l_WW']].describe()
print(s);
end foreign
</hansl>
note: I used pandas' read_csv() method, which means that this won't work
if you haven't got pandas installed.
Commens welcome.
PS: Allin, please review.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------
2 weeks, 5 days