current git, the code below. In general: we look if given argument
exists in a bundle and if so we check its typeof().
The first end the second examples work fine, but at the third evaluation
of 'model_prior' looks like ommited we get error: "internal genr error:
aux node mismatch".
set verbose off
function void FOO (bundle UserOpts)
string arg_name, type_of
Overloadable["bic_type"] = _(bic=1, hbic=2, ibic=3)
Overloadable["model_prior"] = _(binomial=1, betabinomial=2)
Overloadable["with_const"] = _(never=0, always=1, canbedropped=2)
OverloadableKeys = getkeys(Overloadable)
loop i=1..nelem(OverloadableKeys) --quiet
arg_name = OverloadableKeys[i]
if inbundle(UserOpts, arg_name)
if typeof(UserOpts[arg_name]) == 4
type_of = "string"
type_of = "non-string"
printf "Typeof %s is %s\n", arg_name, type_of
printf "The first examle:\n"
printf "\nThe second examle:\n"
FOO(_(bic_type="bic", model_prior="binomial", with_const="always"))
printf "\nThe third examle:\n"
FOO(_(bic_type="bic", model_prior="binomial", with_const=0))
On Tue, Aug 23, 2022 at 4:13 PM Summers, Peter <psummers(a)highpoint.edu>
> Dear Allin et al,
> I have several Mac-using students who reported the issue below when trying
> to download the Stock & Watson data files. Maybe this is similar to the
> issue I had on Windows last week?
Thanks for the report, Peter, but I don't think it's the same thing as you
mentioned before. The "cURL timeout" would just seem to indicate a
(presumably intermittent) problem with the sourceforge server. All the
same, I'll look into it myself the next time I boot into macOS.
Dear Allin et al,
I have several Mac-using students who reported the issue below when trying to download the Stock & Watson data files. Maybe this is similar to the issue I had on Windows last week?
Sent: Tuesday, August 23, 2022 1:09 PM
To: Summers, Peter <psummers(a)highpoint.edu>
Subject: Gretl Mac Issue Screenshots
The stock_watson file is not loading on my Mac. It loads to 506 Kbytes and then times out.
I have attached screenshots to this email.
My apologies if you get this message more than once, but there's a
somewhat unusual situation in gretl development right now.
We've introduced a number of quite ambitious changes since the 2022b
release, and despite our best efforts at testing these seem to carry
some risk (including the risk of gretl crashing in some cases).
Temporarily, therefore, I've introduced a distinction between what
we might call "mainline" updates (pure bug fixes and other innocuous
things) and "bleeding edge" updates (promising speed-up of some
functionality but, for now, risky).
Until further notice the gretl "master" git branch will be the
mainline, and snapshots for Windows and Mac will be produced from
it. If you're building gretl yourself and wish to experiment with
the bleeding edge, please use the "more_compilation" git branch.
We don't expect this bifurcation to last for very long: as they say,
"Normal service will be resumed as soon as possible".
current git, simple script:
set verbose off
set seed 123456
list X = 1 2 9 10 11
RES <- logit depvar 0 X
list X = 1 2 9 10 11
logit depvar 0 X --multinomial --quiet
series yhat = $yhat
xtab --zeros depvar yhat --quiet
It looks like '--zeros' flag has zero effect on xtab command. What is
more, line 'xtab depvar $yhat' generates an error: "Data types not
conformable for operation" which - I believe - is unexpected.
Hi all. Consider this script:
setobs 5 2020-02-01
loop i = 6 .. 12
date = sprintf("2020-02-%02d", i)
printf "%s -> %d\n", date, obsnum(date)
the output I get is:
2020-02-06 -> 4
2020-02-07 -> 5
2020-02-08 -> 6
2020-02-09 -> 7
2020-02-10 -> 6
2020-02-11 -> 7
2020-02-12 -> 8
which is of course correct from Monday to Friday, but obviously wrong for
weekends. What do you guys think we should do in these cases? I reckon we
ought to return NAs, but I'm open to other ideas.
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
Hi, here's a general question:
For a while now you could, for example, continue your function
definition on the next line without using the explicit continuation
character (backslash). Like this:
function void withmanyargs(int arg1,
OK, this also seems to work with other unmatched parentheses (round
brackets) pairs. I've just tested this with an errorif() function
stretched out over two lines, for example.
I don't think this is documented, or is it? Is this official and
reliably a part of the hansl syntax?
I know we're not talking about square brackets or curly braces, just the