[Gretl-devel] coint2 leftover?

2023-07-14 Thread Sven Schreiber
Hi, I've noticed in gui/gretlmain.xml that in some "action" field for the menus it still says "coint2". I know coint2 is still an accepted alias for the "johansen" command name introduced two years ago, but perhaps this should be changed to "johansen" as well? Not sure about the internals.

[Gretl-devel] Re: gretl 2023b coming up

2023-07-14 Thread Sven Schreiber
Am 13.07.2023 um 11:03 schrieb Riccardo (Jack) Lucchetti: On Wed, 12 Jul 2023, Cottrell, Allin wrote: The 4 columns now give: addon name, installed version, version on server, and comment. The comment variants are: * If the two version numbers are the same: "Up to date" * If the installed

[Gretl-devel] Re: PRE-RELEASE: Testscripts fail

2023-07-12 Thread Sven Schreiber
Am 12.07.2023 um 14:05 schrieb Cottrell, Allin: On Wed, Jul 12, 2023 at 2:53 AM Riccardo (Jack) Lucchetti wrote: On Wed, 12 Jul 2023, Artur T. wrote: Hi, Given Allin's announcement that a new version will be released soon, I ran the test scripts. 1. For the following script the assertion

[Gretl-devel] misleading error message when loading a package

2023-07-12 Thread Sven Schreiber
Hi, running Artur's fsboost package I first got the following error message: gretl-Version 2023b-git Aktuelle Sitzung: 2023-07-12 09:15 Fehler beim Laden von fsboost.gfn     # ... general error Fehler beim Öffnen des Ordners »C:\Users\Sven Schreiber\Documents\gretl\functions«: No such file

[Gretl-devel] Re: gretl 2023b coming up

2023-07-11 Thread Sven Schreiber
Am 11.07.2023 um 16:17 schrieb Cottrell, Allin: My current plan is to release gretl 2023b a week from today (July 18). So this would be a good time to update translations. Also if people have sets of test scripts it would be a good time to run them and report any problems. Thanks, Allin. The

[Gretl-devel] Re: more stuff in .gitignore ?

2023-07-11 Thread Sven Schreiber
Am 11.07.2023 um 14:17 schrieb Cottrell, Allin: On Tue, Jul 11, 2023 at 8:11 AM Sven Schreiber wrote: in my copies/clones of the git repo I'm getting a lot of untracked files which sometimes is a bit annoying. Some of them may have to do with un-recommended builds in the source tree

[Gretl-devel] more stuff in .gitignore ?

2023-07-11 Thread Sven Schreiber
Hi, in my copies/clones of the git repo I'm getting a lot of untracked files which sometimes is a bit annoying. Some of them may have to do with un-recommended builds in the source tree, but others are perhaps more pervasive. I'm not too familiar with the git rules for the .gitignore files:

[Gretl-devel] gretl crash with omitted arg in hansl function

2023-07-10 Thread Sven Schreiber
Hi, I'm seeing the following reproducible crash on Windows 10 on a snapshot from May. (Later I will test on a newer snapshot, but maybe someone can reproduce this.) Here's a pretty minimal example: function matrix f (string name[null])     print "hello"     return I(2) end function f()

[Gretl-devel] the "redhat" dir in the source tree

2023-07-10 Thread Sven Schreiber
Hi, a totally non-urgent question: Is the "redhat" directory in the source still needed? It only seems to contain the gretl.spec.in -- that alone of course doesn't say that it's unnecessary, but the latest change there seems to be from 2015. And looking into that short file, the duplication

[Gretl-devel] Re: install failure on virtual Ubuntu on Windows/WSL(g)

2023-07-10 Thread Sven Schreiber
Am 10.07.2023 um 13:17 schrieb Cottrell, Allin: On Mon, Jul 10, 2023 at 5:40 AM Sven Schreiber wrote: ... Any ideas how to work around this problem? Some switches at the configure stage? I'd try passing --disable-xdg to configure. Thanks, Allin, installation was successful now. Then I had

[Gretl-devel] install failure on virtual Ubuntu on Windows/WSL(g)

2023-07-10 Thread Sven Schreiber
Hi, I'm facing a problem in ubuntu 22.04 which runs in the Windows Subsystem for Linux, with support for graphical apps (version 2, WSLg), in Windows 11. The build runs fine, but at the "sudo make install" stage I'm getting: xdg-desktop-menu install gretl.desktop --novendor xdg-desktop-menu:

[Gretl-devel] Re: outdated online manuals

2023-06-18 Thread Sven Schreiber
Am 18.06.2023 um 19:02 schrieb Cottrell, Allin: On Sun, Jun 18, 2023 at 11:56 AM Sven Schreiber wrote: That's true. But then there still is the problem I described, namely that the installed snapshot would have access to the current manual versions (in C:\Program Files\gretl\doc

[Gretl-devel] gretl intertemporal speed comparison

2023-06-18 Thread Sven Schreiber
Hi everybody, at the gretl conference the last couple of days we also talked about the speed improvements, and (as always) an idea was to run some tests or comparisons. So here's a first piece of evidence concerning the hansl scripting language, which uses the non-econometric RBC solution

[Gretl-devel] Re: outdated online manuals

2023-06-18 Thread Sven Schreiber
Am 18.06.2023 um 11:33 schrieb Cottrell, Allin: On Sat, Jun 17, 2023 at 6:47 PM Sven Schreiber wrote: it seems to me that several files in this path are not up to date: https://sourceforge.net/projects/gretl/files/manual/ Those files are generally kept in sync with the gretl release, and I

[Gretl-devel] outdated online manuals

2023-06-17 Thread Sven Schreiber
Hi, it seems to me that several files in this path are not up to date: https://sourceforge.net/projects/gretl/files/manual/ The thing is that here on Windows the freshly installed snapshot brought along the right manuals and saved it into C:\Program Files\gretl\doc, but gretl instead downloads

[Gretl-devel] Re: impossible to access in DBNOMICS

2023-06-02 Thread Sven Schreiber
Am 02.06.2023 um 17:15 schrieb Cottrell, Allin: On Fri, Jun 2, 2023 at 3:44 PM Riccardo (Jack) Lucchetti wrote: On Fri, 2 Jun 2023, Dionysio Lalountas wrote: Hi all, Tried a few times to enter the dbnomics database and i get The following message Couldn't parse JSON input: :1:1: Parse

[Gretl-devel] multiplot, gridplot naming

2023-05-24 Thread Sven Schreiber
Hi, in git I've noticed that the name of the respective source file is "gretl_multiplot.c", while the experimental hansl command block has keyword "gridplot". I think it would be good to match these names - but perhaps it's too early and "gridplot" is still subject to renaming? thanks sven

[Gretl-devel] Re: [EXTERNAL] Re: panel-specific variable transformations in the menu?

2023-05-15 Thread Sven Schreiber
Am 10.05.2023 um 00:43 schrieb Summers, Peter: I also like that idea, especially since most of my students are easily intimidated by scripting (even in hansl!) I like the idea of revamping the "Add" menu by introducing submenus. For example, lags, diffs etc could go under "Time series

[Gretl-devel] Re: crash when trying to look at package code

2023-05-14 Thread Sven Schreiber
Am 14.05.2023 um 16:07 schrieb Cottrell, Allin: I can confirm that, and I'm seeing this: ' matrices c...' *** buffer overflow detected ***: terminated Aborted (core dumped) It's due to the massively long statements defining arrays of critical-value matrices. A fix should be forthcoming

[Gretl-devel] crash when trying to look at package code

2023-05-14 Thread Sven Schreiber
Hi, this is with the April 19th snapshot on Windows 10 (running in German without local comma), and is reproducible. - open the package list window via the button at the bottom - search for the StrucBreak package by entering "struc" in the search field - I'm seeing v0.91 here, from 2021 -

[Gretl-devel] Re: making matrix functions applicable to matrix arrays

2023-05-10 Thread Sven Schreiber
Am 10.05.2023 um 16:27 schrieb Riccardo (Jack) Lucchetti: Hi all, I just thought it might be nice to extend the scope of some functions we have. Take rows(), which returns a scalar. Why not have it return a vector when applied to a matrix array? Of course the same could be done with cols().

[Gretl-devel] Re: nullspace() weirdness

2023-05-09 Thread Sven Schreiber
Am 09.05.2023 um 00:16 schrieb Riccardo (Jack) Lucchetti: On Mon, 8 May 2023, Sven Schreiber wrote: nullspace_normalize function in plugin/jrestrict.c. If the latter is specific to cointegration stuff, I think it would be good if the function name reflected that. If, OTOH, it's a general

[Gretl-devel] panel-specific variable transformations in the menu?

2023-05-09 Thread Sven Schreiber
Hi, in real-life teaching I encountered the situation that we wanted to create the time averages in the context of a panel dataset. I told students to write a command using the pmean() function, but among the stuff we did that was the only thing which couldn't be achieved through the menus.

[Gretl-devel] Re: nullspace() weirdness

2023-05-08 Thread Sven Schreiber
Am 08.05.2023 um 21:33 schrieb Cottrell, Allin: On Mon, May 8, 2023 at 12:24 PM Riccardo (Jack) Lucchetti wrote: The inconsistency lies in the fact that the result of nullspace() is normalised by equating the largest element to 1 if has one column, and to be orthonormal otherwise. This may be

[Gretl-devel] forecasting range with regls (GUI)

2023-05-05 Thread Sven Schreiber
Hi, the following seems like a slight glitch: For illustration (only), I'm using the data4-10.gdt example dataset. Sample is set to 1-48. I'm running a plain Lasso with regls in the GUI, ADMEXP being the dep. var. Then I click (in the result window) on the forecast button (binoculars), and

[Gretl-devel] Re: About adding observations in forecasts with an estimated AR model

2023-05-01 Thread Sven Schreiber
Next time, please start a new thread for a new topic instead of replying to another message. (even if you change the subject line, it's still treated as a reply.) Am 01.05.2023 um 08:58 schrieb yinung at Gmail: I just found it when I estimated an AR model (via ARIMA) with sub-sample

[Gretl-devel] issues with panel sample adjustment in the GUI

2023-04-27 Thread Sven Schreiber
Hi, I'm observing something strange working with the grunfeld.gdt sample datafile in the GUI. This is with the latest Windows snapshot. The dataset has units 1 to 10, and time periods 1935 through 1954, so T = 20 (fully balanced). I go to Sample / Set range; it shows N=10, T=20, NT=200. OK.

[Gretl-devel] Re: join gdt-file: series description gets lost

2023-04-09 Thread Sven Schreiber
Am 09.04.2023 um 10:54 schrieb Artur T.: Hi all, I stumbled probably over some bug when joining a series. When appending a gdt-dataset, the description of a series gets shipped. However, when joining a series, this meta-information gets lost. Confirmed  - I guess this oversight happened

[Gretl-devel] Re: 'catch' and error messages

2023-04-04 Thread Sven Schreiber
Am 03.04.2023 um 12:00 schrieb Sven Schreiber: . In addition, I see that even the line with 'catch' does print out the error, whereas I expected it to be silent in that case, no? BTW, it seems that sometimes it's silent, and sometimes not. After a fresh restart of gretl, I enter "catch m

[Gretl-devel] 'catch' and error messages

2023-04-03 Thread Sven Schreiber
Hi, I'm wondering why sometimes there exist informative error messages but it doesn't seem easy to catch them. Here's a concrete (and real-world-inspired) use case: ? m = feval("haha") haha: function not found That's exactly the right error message! However, now I try to retrieve that

[Gretl-devel] problem installing package on virtual CLI Linux

2023-04-02 Thread Sven Schreiber
Hi, I'm getting this weird reaction from gretl which I'm running on an Ubuntu 22.04 installation in the Windows subsystem for Linux, so a virtual thing. This is a non-GUI installation. As you can see, the gretl version is 2022a, and when trying to install the parallel_func package gretl

[Gretl-devel] Re: glitch with switching decimal separator

2023-03-31 Thread Sven Schreiber
Am 30.03.2023 um 21:11 schrieb Cottrell, Allin: On Thu, Mar 30, 2023 at 2:54 PM Sven Schreiber wrote: Am 30.03.2023 um 20:06 schrieb Cottrell, Allin: This would help: If you run gretl.exe --debug on German Windows with language "Automatic", what string do you see for "

[Gretl-devel] Re: glitch with switching decimal separator

2023-03-30 Thread Sven Schreiber
Am 30.03.2023 um 20:06 schrieb Cottrell, Allin: On Thu, Mar 30, 2023 at 10:27 AM Sven Schreiber wrote: Am 20.03.2023 um 23:05 schrieb Sven Schreiber: Am 20.03.2023 um 20:25 schrieb Cottrell, Allin: I can replicate your behavior when I set the language explicitly to German (and restarting

[Gretl-devel] Re: glitch with switching decimal separator

2023-03-30 Thread Sven Schreiber
Am 20.03.2023 um 23:05 schrieb Sven Schreiber: Am 20.03.2023 um 20:25 schrieb Cottrell, Allin: Hmm, I can't replicate that. I run gretl with LANG=de_DE.UTF-8, select the option of using the locale decimal character, and enter two lines of code in the script editor: x = 13.7 eval x * I run

[Gretl-devel] Re: GMM for a system (_not_ in the panel context)

2023-03-30 Thread Sven Schreiber
Am 02.02.2023 um 13:16 schrieb Sven Schreiber: Hi, has anyone ever tried to use gretl's gmm ... end gmm block to estimate a "classical" multiple-equation system? I'm not talking of dynamic panels, but a traditional simultaneous equation system. AFAIK the built-in offerings for a &qu

[Gretl-devel] Re: Optional arguments (in user-defined hansl functions) and nested function calls

2023-03-23 Thread Sven Schreiber
Am 22.03.2023 um 10:19 schrieb Sven Schreiber: Am 22.03.2023 um 02:49 schrieb Cottrell, Allin: Sorry, I don't really understand this example. If opts is not supplied there's nothing to be checked, so one should simply do if exists(opts) bcheck(, opts) endif Yes, again the point is: why do

[Gretl-devel] 'print' mixture with series

2023-03-23 Thread Sven Schreiber
Hi, not sure if the following should work: open denmark series se string s print se s # error The cause seems to be mixing a series with another type in the print command. (Even though the error msg somewhat misleadingly complains about the string type.) thanks sven

[Gretl-devel] Re: Optional arguments (in user-defined hansl functions) and nested function calls

2023-03-22 Thread Sven Schreiber
Am 22.03.2023 um 02:49 schrieb Cottrell, Allin: On Tue, Mar 21, 2023 at 6:43 PM Sven Schreiber wrote: Yes, that was a typo, sorry. In this example it is inconsequential, however, because the point is what happens when "null" is passed in. Not totally inconsequential, in that pas

[Gretl-devel] Re: Optional arguments (in user-defined hansl functions) and nested function calls

2023-03-21 Thread Sven Schreiber
Am 21.03.2023 um 19:51 schrieb Cottrell, Allin: One more go on this... On Tue, Mar 21, 2023 at 1:53 PM Sven Schreiber wrote: function void level2 (string s2) eval exists(s) ? s : "nothing" end function [ BTW note confusion between s2 and s here ] Yes, that was a t

[Gretl-devel] Optional arguments (in user-defined hansl functions) and nested function calls

2023-03-21 Thread Sven Schreiber
Hi, looking at some new hansl code I'm reminded again that we have a fundamental problem for (mildly) advanced programming, I'm afraid. An example is probably the best way to show what I mean: function void level2 (string s2)     eval exists(s) ? s : "nothing" end function function void

[Gretl-devel] Re: glitch with switching decimal separator

2023-03-20 Thread Sven Schreiber
Am 20.03.2023 um 20:25 schrieb Cottrell, Allin: Hmm, I can't replicate that. I run gretl with LANG=de_DE.UTF-8, select the option of using the locale decimal character, and enter two lines of code in the script editor: x = 13.7 eval x * I run the script and see "13,7" on output. * I turn off

[Gretl-devel] Re: search in packages' descriptive labels

2023-03-20 Thread Sven Schreiber
Am 20.03.2023 um 19:05 schrieb Cottrell, Allin: On Mon, Mar 20, 2023 at 3:29 AM Sven Schreiber wrote: it would be useful if - in the package listing window - using the search text box would not only search the names of the packages (as it seems to be doing), but also in the descriptive

[Gretl-devel] glitch with switching decimal separator

2023-03-20 Thread Sven Schreiber
Hi, with a snapshot from March 11th, it seems that when (running in German which natively would have a decimal comma) I switch off the comma in the settings, it works, but when I try to switch it back _on_, then the decimal point stays. Only a gretl restart corrects the issue. (Actually I

[Gretl-devel] search in packages' descriptive labels

2023-03-20 Thread Sven Schreiber
Hi, it would be useful if - in the package listing window - using the search text box would not only search the names of the packages (as it seems to be doing), but also in the descriptive strings. We may have much less packages than R, but we have enough that doing the eyeball scan is not a

[Gretl-devel] alias for "scatters" in time series?

2023-03-10 Thread Sven Schreiber
Hi, the "scatters" command has the nice feature that in a time-series context it makes it possible to have multiple plots of series against time. But I find the word "scatters" completely unintuitive, arguably misleading, and I'm surprised every time I read it in somebody's code. Can we have

[Gretl-devel] Re: Win7 64bit, gretl 32bit and MS-MPI 10

2023-03-10 Thread Sven Schreiber
Am 10.03.2023 um 11:28 schrieb Marcin Błażejowski: I need to run some test on Windows, so I have configuration like in subject: Win7 Pro 64bit + gretl 2023b-git 32bit + MS-MPI 10. When calling simple script: ... Is this related with the fact that gretl is 32 bit while Windows 64 bit? I'm

[Gretl-devel] Re: lrvar bug (?) in panels

2023-03-06 Thread Sven Schreiber
Am 06.03.2023 um 19:21 schrieb Cottrell, Allin: On Fri, Mar 3, 2023 at 10:52 AM Sven Schreiber > wrote: >> >> I suspect that the lrvar function (long-run variance estimation) is >> slightly wrong in the panel case. Consider the following example >> [...] > &g

[Gretl-devel] lrvar bug (?) in panels

2023-03-03 Thread Sven Schreiber
Hi, I suspect that the lrvar function (long-run variance estimation) is slightly wrong in the panel case. Consider the following example: function matrix lrvarFE(series x, int b "bandwidth")     N = max($unit)     out = 0     loop i = 1..N     smpl i i --unit    

[Gretl-devel] Re: pitfalls of appending panel datasets

2023-03-02 Thread Sven Schreiber
Am 24.02.2023 um 19:04 schrieb Sven Schreiber: ... But suppose that the 4 panel units in file1 do _not_ correspond to the first 4 units in file2. This is something that can easily happen in real life. So the append operation doesn't get the matching right. ... I'm curious what your

[Gretl-devel] pitfalls of appending panel datasets

2023-02-24 Thread Sven Schreiber
Hi everybody, this is a bit of an advanced panel data handling problem, but at the same time practically relevant I think... Perhaps it might even qualify as a bug, but let's see: I'm wondering whether appending a second panel dataset (say, file2.gdt) to an open panel dataset (say, file1.gdt)

[Gretl-devel] Re: Print and functions with pointers

2023-02-22 Thread Sven Schreiber
Am 14.02.2023 um 18:41 schrieb Federico Fiorani: Hi everybody, I noticed this little thing ... printf: 1 eval: 2 print: 4 As you can see, seem like that "print" command calls the function twice. Is it something wanted? Hi Federico, sorry for the delay, people have been busy... No, it's not

[Gretl-devel] Re: translation questions

2023-02-22 Thread Sven Schreiber
Am 20.02.2023 um 08:16 schrieb Riccardo (Jack) Lucchetti: On Sun, 19 Feb 2023, Sven Schreiber wrote: Hi, it's that time again when we translators finally have to update our translations (but actually I think I'm the only laggard...). But I only have one question: - "Rati

[Gretl-devel] Re: translation questions

2023-02-22 Thread Sven Schreiber
Am 19.02.2023 um 23:30 schrieb Hélio Guilherme: I see the code using it at +233 gui/about.c. But I don't know how to activate it. I did try to find an About dialog from script editor, but there is not. We can see that it swaps with the News button in the About dialog. Thanks, Hélio. I think

[Gretl-devel] search paths for packages on Windows

2023-02-22 Thread Sven Schreiber
Hi, I'm seeing here that packages in the Windows path C:\users\\Documents\gretl\functions are not being found by gretl (snapshot Feb 9th). Is this expected? thanks sven ___ Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it To unsubscribe

[Gretl-devel] translation questions

2023-02-19 Thread Sven Schreiber
Hi, it's that time again when we translators finally have to update our translations (but actually I think I'm the only laggard...). But I only have one question: - "Rationale" in the context of the new gretl editor program, which I haven't used yet and so I'm not sure what that means. It

[Gretl-devel] file and dir names in the C source

2023-02-17 Thread Sven Schreiber
Hi, this is a general remark, not a short-term or in any way urgent thing: Maybe some stuff in the source repo could be renamed eventually to reflect the evolution of gretl and to be more consistent. Here are two examples of what struck me as not 100% clear: - The IPS panel unit root test

[Gretl-devel] "const" function arg qualifier and pointer form

2023-02-10 Thread Sven Schreiber
Hi, I'm asking for verification or falsification of my understanding how arguments to functions are treated, specifically those (potentially) involving a lot of memory.  Consider these two similar functions: function void hugematrix1 (const matrix m)     eval rank(m) end function function

[Gretl-devel] GMM for a system (_not_ in the panel context)

2023-02-02 Thread Sven Schreiber
Hi, has anyone ever tried to use gretl's gmm ... end gmm block to estimate a "classical" multiple-equation system? I'm not talking of dynamic panels, but a traditional simultaneous equation system. AFAIK the built-in offerings for a "system" stop at 3SLS and FIML. thanks sven

[Gretl-devel] gretl(cli.exe) has problems removing temp files on Windows

2023-01-29 Thread Sven Schreiber
Hi, recently (?) I'm observing these kind of error messages on a Windows shell, as the last message before the called gretlcli.exe program exits: win32_remove 'prntmp.J1BKZ1': 'Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird. ' ( = Process

[Gretl-devel] Re: tobit's --quiet flag to quite guiet

2023-01-26 Thread Sven Schreiber
Am 26.01.2023 um 11:43 schrieb Marcin Błażejowski: On 26.01.2023 08:51, Sven Schreiber wrote: Am 26.01.2023 um 08:45 schrieb Marcin Błażejowski: Hi, the solution was simpler that I thought: the problem was that print_NR_status() did verify 'set messages on/off' , but did not checked

[Gretl-devel] Re: tobit's --quiet flag to quite guiet

2023-01-26 Thread Sven Schreiber
Am 26.01.2023 um 09:15 schrieb Riccardo (Jack) Lucchetti: On Thu, 26 Jan 2023, Marcin Błażejowski wrote: Hi, the solution was simpler that I thought: the problem was that print_NR_status() did verify 'set messages on/off' , but did not checked for 'set warnings on/off'. The patch in

[Gretl-devel] Re: tobit's --quiet flag to quite guiet

2023-01-25 Thread Sven Schreiber
Am 26.01.2023 um 08:45 schrieb Marcin Błażejowski: Hi, the solution was simpler that I thought: the problem was that print_NR_status() did verify 'set messages on/off' , but did not checked for 'set warnings on/off'. The patch in attachment. Marcin, I don't think this is the complete

[Gretl-devel] Re: Hanl on Jupyter Notebook

2023-01-24 Thread Sven Schreiber
Am 23.01.2023 um 20:05 schrieb Federico Fiorani: Dear all, I was thinking that having hansl on jupyter notebook would be a very useful thing. Has anything been implemented yet? From what I've seen, creating a kernel for hansl with IPython shouldn't be "too complicated" (or so it seemed to

[Gretl-devel] small error with modprint

2023-01-22 Thread Sven Schreiber
Hi, not sure if the following is a bug per se, but the error message is strange in any case: open denmark matrix dummymat = {3, 0.5; 2, 0.6; 4, 0.9} strings somenames = defarray("ha", "ho", "he") modprint dummymat somenames # works extram = {-3} somenames += "extra" modprint dummymat

[Gretl-devel] missing image files in git master?

2023-01-22 Thread Sven Schreiber
Hi, I got errors on Linux at the "make install" stage because some figure files were not present. I believe this is in relation to geoplot changes. thanks sven ___ Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it To unsubscribe send an

[Gretl-devel] crash when clicking the "show windows" button

2023-01-21 Thread Sven Schreiber
Hi, just got a hard crash on Windows with a Jan-7th snapshot, when I clicked the upper-right corner button that is supposed to show a drop-down context menu with a list of open windows. I'm not trying right now to reproduce it, and so fixing this may be difficult, but I'll report the

[Gretl-devel] Re: stacked area chart needed?

2023-01-19 Thread Sven Schreiber
Am 19.01.2023 um 14:34 schrieb atecon: Hi, This is a nice function and thanks for sharing, Sven. But I am not sure that this should become a package on its own. In the extreme case we get N packages for N different types of plots ;-) Actually, years ago I've started to work on a plotting

[Gretl-devel] Re: tobit's --quiet flag to quite guiet

2023-01-19 Thread Sven Schreiber
Am 19.01.2023 um 14:47 schrieb Cottrell, Allin: Or more efficiently: outfile null # do stuff silently end outfile Ah, thanks, Allin, I was looking only for double-dash options in the doc and so I overlooked this one. Actually, for Marcin's case something like "outfile stderr" might also be

[Gretl-devel] Re: tobit's --quiet flag to quite guiet

2023-01-19 Thread Sven Schreiber
Am 19.01.2023 um 10:48 schrieb Riccardo (Jack) Lucchetti: On Thu, 19 Jan 2023, Marcin Błażejowski wrote: Since the message in fact comes from 'gretl_bfgs.c', there could be a set option for optimizers for suppressing any warnings/messages. Does the "set warnings" command help? As per the

[Gretl-devel] Re: tobit's --quiet flag to quite guiet

2023-01-19 Thread Sven Schreiber
Am 19.01.2023 um 09:22 schrieb Marcin Błażejowski: Hi, when we perform tobit command with --guiet flag we sometimes get the following message: "Warning: couldn't improve criterion (gradient = 6.04477e-06)", which /per se/ makes estimation not so quiet. So, the question is: shall we leave

[Gretl-devel] new crash recipe (with 'inject')

2023-01-17 Thread Sven Schreiber
Hello again, here's a fairly minimal example: open denmark system method=ols     equation LRM 0     equation LRY 0 end system RR = defarray("[2 , 10] = 0b") # the "b" got shuffled around restrict     inject RR end restrict Actually, the single-equation variant also "works" in producing a

[Gretl-devel] about some syntax highlighting details

2023-01-17 Thread Sven Schreiber
Hi, here's one or two questions about the specification of keywords and such in gui/gretl.lang and the way it interacts with syntax highlighting. I'm working with the relatively new way to specify restrictions in a system, using the "inject" command inside a restrict block, introduced in

[Gretl-devel] Re: one-line if conditions

2023-01-16 Thread Sven Schreiber
Am 14.01.2023 um 10:35 schrieb Sven Schreiber: Am 13.01.2023 um 21:18 schrieb Cottrell, Allin: On Thu, Jan 12, 2023 at 6:46 AM Sven Schreiber wrote: sorry, here's again one of my crazy syntactic sugar ideas: I think it would be nice if hansl had a more concise way of writing a basic

[Gretl-devel] from time to $time ?

2023-01-15 Thread Sven Schreiber
Hello once more, as explained in section 10.1 of the user guide, there are few special expressions that produce series and that are somewhat at odds with the usual hansl syntax, for historical path-dependent reasons. One is "time", which can either be used as "genr time" (not "series time",

[Gretl-devel] stacked area chart needed?

2023-01-15 Thread Sven Schreiber
Hi everybody, and perhaps Artur T. in particular, I found an old script file with a plotting function "stackedarea" lying around on my harddisk, and I'm attaching it in a slightly updated form. I'm not sure if we currently have the functionality of producing a stacked area plot somehow,

[Gretl-devel] Re: eval and matrix right division (/)

2023-01-14 Thread Sven Schreiber
Am 14.01.2023 um 19:37 schrieb Cottrell, Allin: On Sat, Jan 14, 2023 at 12:48 PM Sven Schreiber wrote: ... I just tried the Jan 1 and Jan 10 Windows snapshots, in both English and German, and saw no such error. I can't really believe in this error without seeing a screenshot where

[Gretl-devel] print, range, and bundles

2023-01-14 Thread Sven Schreiber
Hi, another small glitch when stuff is inside a bundle: m = seq(1,10)' - 0.1 bundle bb = _(m) print m --range=1:5    # works print bb.m --range=1:5    # range is ignored thanks sven ___ Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it

[Gretl-devel] Re: different degrees of lazy evaluation

2023-01-14 Thread Sven Schreiber
Am 14.01.2023 um 16:39 schrieb Cottrell, Allin: On Sat, Jan 14, 2023 at 4:33 AM Sven Schreiber wrote: Hi, sometimes I was under the impression that hansl supports lazy evaluation of boolean expressions, and sometimes I thought that no, it doesn't. And turns out I was right because it seems

[Gretl-devel] Re: eval and matrix right division (/)

2023-01-14 Thread Sven Schreiber
Am 14.01.2023 um 15:44 schrieb Cottrell, Allin: On Sat, Jan 14, 2023 at 5:59 AM Sven Schreiber wrote: ? m = ones(4,3) ? div = {1, 0.2, 5} ? X = m / div Ungültiges Argument # = invalid arg What version of gretl is giving you that error? I'm not seeing any error there. Well, it's the recent

[Gretl-devel] eval and matrix right division (/)

2023-01-14 Thread Sven Schreiber
Hi, there is a disconnect here somehow: ? m = ones(4,3) ? div = {1, 0.2, 5} ? X = m / div Ungültiges Argument # = invalid arg ? eval m/ div 0,23810 0,23810 0,23810 0,23810 Given that as per the doc X should solve X*div = m, and div has dim 1x3, m has dim 4x3, X having

[Gretl-devel] Re: one-line if conditions

2023-01-14 Thread Sven Schreiber
Am 13.01.2023 um 21:18 schrieb Cottrell, Allin: On Thu, Jan 12, 2023 at 6:46 AM Sven Schreiber wrote: sorry, here's again one of my crazy syntactic sugar ideas: I think it would be nice if hansl had a more concise way of writing a basic if-endif block, where the thing to be executed is just

[Gretl-devel] different degrees of lazy evaluation

2023-01-14 Thread Sven Schreiber
Hi, sometimes I was under the impression that hansl supports lazy evaluation of boolean expressions, and sometimes I thought that no, it doesn't. And turns out I was right because it seems to depend. Consider this: clear    # neither a nor b exist eval 1==2 && a==b    # lazy works, FALSE no

[Gretl-devel] one-line if conditions

2023-01-12 Thread Sven Schreiber
Hi, sorry, here's again one of my crazy syntactic sugar ideas: I think it would be nice if hansl had a more concise way of writing a basic if-endif block, where the thing to be executed is just a single line. In other languages, this would be (AFAIK): C: if () ; Bash: if ; then fi

[Gretl-devel] Re: more specific error matrix for eigen()?

2023-01-11 Thread Sven Schreiber
Am 07.01.2023 um 19:56 schrieb Sven Schreiber: in lib/src/gretl_matrix.c inside the real_gretl_dgeev function on line 9797 I'm seeing:  if (gretl_is_null_matrix(A) || A->rows != A->cols) {     *err = E_INVARG;     return NULL; leading to the user-level generic error message &q

[Gretl-devel] small issue with error message for 'genseries' with bundle

2023-01-10 Thread Sven Schreiber
Hi, consider this example: open denmark bundle b = _(y=LRM) list L = const L += genseries("L", b.y) This rightly gives an error, since genseries tries to create a series "L", where the identifier "L" is already occupied by the defined list before. But the error message is a little

[Gretl-devel] problem with advanced regls (Lasso) use

2023-01-10 Thread Sven Schreiber
Hi, I want to run the Lasso with gretl's recent regls addon as a helper function for another algorithm, not as a main application. Also, it's inside a matrix-based specialized function, so I can't use the official regls() function which AFAIK only works with series and lists, not with

[Gretl-devel] editor window split and focus jumping

2023-01-10 Thread Sven Schreiber
Hi, this seems like a bug to me: I have a script window open in split view. When I paste something (ctrl-v) into the part visible at the top, the lower part's focus is shifted more or less to the line where I have pasted stuff. This defeats the purpose of having a split view. This is with a

[Gretl-devel] MPI problems because of complex numbers?

2023-01-10 Thread Sven Schreiber
Hi, I have been struggling with a function of mine that uses MPI and gave me mysterious errors only in some cases (always hard to debug MPI stuff on Windows anyway). But I think I may have found some indication of what's going on, consider this: mpi --send-functions     switch = 5     if

[Gretl-devel] more specific error matrix for eigen()?

2023-01-10 Thread Sven Schreiber
Hi, in lib/src/gretl_matrix.c inside the real_gretl_dgeev function on line 9797 I'm seeing:  if (gretl_is_null_matrix(A) || A->rows != A->cols) {     *err = E_INVARG;     return NULL; leading to the user-level generic error message "invalid argument" for example for non-square

[Gretl-devel] --decr option for index loops

2023-01-10 Thread Sven Schreiber
Hi, the mentioned option (recently introduced in 2022b according to the changelog) doesn't seem to be documented yet. (If anybody is wondering, here's an example: loop i = 10..1 --decr     print i endloop ) thanks sven ___ Gretl-devel mailing

[Gretl-devel] incompatibility log directly in gretl

2023-01-10 Thread Sven Schreiber
Hi everybody, here's an idea: When you open Help - About gretl, and then click on News, you get the release notes in the form of the most recent changelog, together with a link to the online version. On that webpage, you also have a link to the log of compatibility-breaking changes. What

[Gretl-devel] Re: bare matrix initialization

2022-12-06 Thread Sven Schreiber
Am 05.12.2022 um 22:39 schrieb Cottrell, Allin: On Thu, Dec 1, 2022 at 11:06 AM Sven Schreiber wrote: if I create a new matrix without assignment (matrix m), I get a 0x0 empty matrix. Can I rely on this behavior or is it in principle undefined and could change in the future? You can rely

[Gretl-devel] Re: catch failing within loop

2022-12-03 Thread Sven Schreiber
Am 03.12.2022 um 12:27 schrieb Artur T.: It's really about the $error accessor. This, for instance, also fails: Well, yes and no. Here's a failure without explicitly using $error: open denmark loop i = $tmax..($tmax + 1)     catch value = LRM[i]     print value endloop When the "print"

[Gretl-devel] sample_t1 and sample_t2 missing from $system bundle after 'system' (in narrow sense)

2022-12-02 Thread Sven Schreiber
Hello everybody, I'm noticing that the $system accessor bundle does not contain the sample_t1 and sample_t2 members if the bundle stems from an explicit simultaneous-equation system ('system' block, as opposed to 'var' or 'vecm'). See for example: open denmark system method=sur    

[Gretl-devel] Re: catch failing within loop

2022-12-02 Thread Sven Schreiber
Am 02.12.2022 um 12:36 schrieb Sven Schreiber: Hi, consider this fairly minimal code example: open denmark loop i = $tmax..$tmax + 9     catch value = LRM[i]     eval $error     # This line necessary to provoke the problem! endloop No news about the underlying bug, but in order to work

[Gretl-devel] Re: numerical overflow problem? (with $huge and int())

2022-12-02 Thread Sven Schreiber
Am 01.12.2022 um 19:25 schrieb Marcin Błażejowski: On 1.12.2022 17:51, Sven Schreiber wrote: ? eval int($huge) -2.1474836e+009 Hmm, if ($huge==1e+100) I would't say it is an issue, since it's far beyond 32 bits integer. I know this example was a bit ridiculous, but AFAIK nowhere in our

[Gretl-devel] catch failing within loop

2022-12-02 Thread Sven Schreiber
Hi, consider this fairly minimal code example: open denmark loop i = $tmax..$tmax + 9     catch value = LRM[i]     eval $error     # This line necessary to provoke the problem! endloop What I'm getting on gretl 2022c is that in the first loop iteration it works as expected, namely that

[Gretl-devel] Re: numerical overflow problem? (with $huge and int())

2022-12-02 Thread Sven Schreiber
Am 01.12.2022 um 17:51 schrieb Sven Schreiber: totally different small issue: ? eval int($huge) -2.1474836e+009 ... as opposed to floor($huge) and round($huge), which work as expected. BTW, int(-$huge) is also negative, the same number. Off-list discussion revealed that the overflow issue

[Gretl-devel] Re: bare matrix initialization

2022-12-02 Thread Sven Schreiber
Am 02.12.2022 um 10:37 schrieb Artur T.: Am 01.12.22 um 17:06 schrieb Sven Schreiber: if I create a new matrix without assignment (matrix m), I get a 0x0 empty matrix. Can I rely on this behavior or is it in principle undefined and could change in the future? I would recommend to follow

[Gretl-devel] numerical overflow problem? (with $huge and int())

2022-12-01 Thread Sven Schreiber
Hi, totally different small issue: ? eval int($huge) -2.1474836e+009 ... as opposed to floor($huge) and round($huge), which work as expected. BTW, int(-$huge) is also negative, the same number. thanks sven ___ Gretl-devel mailing list --

<    1   2   3   4   5   6   7   8   9   10   >