Bug?
by Marcin Błażejowski
Hi,
I'm not sure if this is bug or not:
<hansl>
open arma
catch model <- ols y 0 u
</hansl>
But if it is a bug, here is another:
<hansl>
open arma
catch model <- ols y 0 u --quiet
</hansl>
Marcin
--
Marcin Błażejowski
3 years, 11 months
'print' and array elements
by Sven Schreiber
Hi,
another minor question before release. Consider this example:
<hansl>
strings S = defarray("a")
print S[i] # no output, no reaction
</hansl>
I _don't_ expect this to work, that's not the point. But shouldn't there
be some kind of parsing error?
thanks
sven
3 years, 11 months
very minor $xlist documentation bug
by Sven Schreiber
Hi everybody,
even though the release candidate was posted on the users' list, I'm
sticking to devel for such very technical and narrow issues.
In the $xlist reference it is claimed that in a system of equations the
predetermined variables are included. This is not true, and for good
reason. (They are in $system.predet_vars and in some of $system.list1
... list<N>.)
I would delete the two words from the funcref if nobody objects.
cheers
sven
3 years, 11 months
array of lists problem
by Sven Schreiber
Hi,
this looks like a bug, no?:
<hansl>
open denmark
lists LL = array(1)
list oldL = null
list oldL += 1 # works
list LL[1] += 1 # fails
</hansl>
Adding a line "list LL[1] = null" doesn't change anything.
thanks
sven
3 years, 11 months
defbundle parsing
by Sven S
Hi,
the following line works, but shouldn't it fail due to the trailing comma?:
bundle b = defbundle("a",1 ,)
thanks
sven
3 years, 11 months
Augmenting a bundles array errors
by Artur Tarassow
Hi,
by chance I've found the following behavior -- which may be a bug --
when augmenting an empty bundles with a bundle where the value is a
string array "directly passed". This is with latest git on Ubuntu 20.04.
<hansl>
set verbose off
clear
# works
bundle b = _(value = "foo")
print b
# works
bundle b = _(value = defarray("A", "B", "C"))
print b
# works
bundles B = null
B = B + _(value = "foo")
print B
# fails
bundles B = null
B = B + _(value = defarray("A", "B", "C"))
print B
# works
bundles B = array(1)
B[1] = _(value = defarray("A", "B", "C"))
print B
# works
bundles B = null
input = defarray("A", "B", "C")
B = B + _(value = input)
print B
</hansl>
Best,
Artur
3 years, 11 months
foreach-loop over arrays
by Artur Tarassow
Hi,
I am not sure the following behavior of bundles and matrices data types
is intended:
While a foreach loop iterates over all items for bundles (items = keys)
and string arrays this is _not_ the case for matrices and bundle arrays
aka bundles. I think it's quite natural that it matrices and bundles
should also be "iterable" but maybe I am overlooking something.
Thanks,
Artur
<hansl>
clear
set verbose off
matrices M = array(2)
M[1] = mnormal(3,2)
M[2] = mnormal(3,2)
strings S = defarray("A", "B", "C")
bundle b = _(A = 1, B = 2)
bundles B = array(2)
B[1] = b
B[2] = b
function void foreach_matrices (const matrices X)
print "Matrices"
loop foreach i X
printf "Round %d of %d.\n", i, nelem(X)
endloop
print ""
end function
function void foreach_strings (const strings X)
print "Strings"
loop foreach i X
printf "Round %d of %d.\n", i, nelem(X)
endloop
print ""
end function
function void foreach_bundle (const bundle X)
print "bundle"
loop foreach i X
printf "Round %d of %d.\n", i, nelem(X)
endloop
print ""
end function
function void foreach_bundles (const bundles X)
print "Bundles"
loop foreach i X
printf "Round %d of %d.\n", i, nelem(X)
endloop
print ""
end function
foreach_matrices(M)
foreach_strings(S)
foreach_bundle(b)
foreach_bundles(B)
/*
Matrices
Round 1 of 2.
Strings
Round 1 of 3.
Round 2 of 3.
Round 3 of 3.
bundle
Round 1 of 2.
Round 2 of 2.
Bundles
Round 1 of 2.
*/
</hansl>
3 years, 11 months
== and matrices
by Sven Schreiber
Hi,
I noticed that the following works and returns 1 (TRUE):
eval ones(3) == ones(3)
So the semantics here seem to be those of "isallequal". I wasn't aware
that this is supported by gretl - is it going to stay or just a
coincidence off the spec?
thanks
sven
3 years, 11 months
'assert' doubts
by Sven Schreiber
Hi,
(with the latest snapshot) I wonder if I'm missing something:
? eval assert(1==0)
1
To be totally explicit, I was expecting 0 given the obvious falsehood of
1 and 0 being equal.
cheers
sven
3 years, 11 months
Packages
by Ivan Falconi
Hi, I received the message below. What does "staging area" mean in this
context, please? I am trying to activate the options for tests of time
series analysis once it has been modelled. Normality test opens in both
cases, when the dataset is declared as cross-section and time series. The
autocorrelation test only opens when the dataset is declared as time
series. Why homogeneity of variance is not activated for both cases? I had
to use the Barlett's test instead.
I am reviewing Prof. Adkins's POE5 user guide and have not found yet a clue
about it. I am already in page 59 (functions). I would be appreciative for
any hint. Thanks in advance.
Have a Healthy 2021.
Regards,
Ivan Falconi
[image: image.png]
3 years, 11 months