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

2023-01-19 Thread 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 package supporting various plots and

[Gretl-devel] Re: from time to $time ?

2023-01-16 Thread atecon
Am 16.01.2023 00:07 schrieb 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

[Gretl-devel] Re: Document control software for a complete document lifecycle

2022-10-11 Thread atecon
Hi, I guess that spam account should be removed from the list. Artur Am 11.10.2022 08:36 schrieb complianceques...@gmail.com: A cloud-based online document control software helps automate your document management securely as per the requirements of FDA and ISO compliance.

[Gretl-devel] Re: SIGABRT - double free

2022-08-22 Thread atecon
Am 22.08.2022 08:55 schrieb Marcin Błażejowski: Hi, current git, simple script: set verbose off include oprobit_predict.gfn open wtp.gdt set seed 123456 list X = 1 2 9 10 11 RES <- logit depvar 0 X RES.show Hi, this is confirmed under Ubuntu 20.10 using latest git. Artur

[Gretl-devel] crash storing compacted dataset as gdt

2022-07-25 Thread atecon
Hi all, with latest git the following script crashes with a memory access error under Ubuntu 21.10: clear set verbose off nulldata 4 setobs 4 2022:01 --time-series series num = normal() series str = defarray("A", "B", "C", "D") dataset compact 1 sum #store foo.csv # works #store

[Gretl-devel] Re: garch crash

2022-07-25 Thread atecon
Am 21.07.2022 15:15 schrieb Riccardo (Jack) Lucchetti: On Wed, 20 Jul 2022, Artur T. wrote: Hi, I just found that negative lag specifications for the garch command lead to a segmentation fault: open b-g --quiet garch -1 0 ; Y garch 0 -1 ; Y # also crashes This should be fixed in git

[Gretl-devel] Re: crash with the fsboost package

2022-05-26 Thread atecon
Am 27.05.2022 02:00 schrieb Cottrell, Allin: On Thu, May 26, 2022 at 5:27 AM Artur T. wrote: Am 19.05.22 um 18:03 schrieb Sven Schreiber: > With yesterday's snapshot on Windows the sample script from fsboost does > not produce a crash anymore. However, there's again the error that has >

[Gretl-devel] Re: VECM linear restrictions GUI: right-click has no effect

2022-05-03 Thread atecon
Am 02.05.2022 20:40 schrieb Cottrell, Allin: On Mon, May 2, 2022 at 10:45 AM Sven Schreiber wrote: Hi, trying to specify some cointegration restrictions after estimating a VECM in the GUI. The text at the top says "right-click for some abbreviations" (or perhaps symbols, I'm re-translating

[Gretl-devel] Re: Indexing by 'end'

2022-03-29 Thread atecon
Am 29.03.2022 12:24 schrieb Marcin Błażejowski: Hi, simple example: set verbose off n = 3 # Works m = unvech(seq(1,n)') eval m[end,end] # Works m = seq(1,n)' eval m[end,end] # Does not work m = seq(1,n) eval m[end,end] The weird thing is that it works for a column vector: n = 3 m =

[Gretl-devel] Re: weird problem with smpl --replace --restrict

2022-01-17 Thread atecon
Am 18.01.2022 00:07 schrieb Sven Schreiber: Hi, I have a situation here where the "smpl ... --replace --restrict" construct isn't working like (I, at least) expected. Sorry, I can't give a minimal working example yet. The context is a panel dataset and we're inside a hansl function where the

[Gretl-devel] Re: new feature for string-valued series

2021-12-09 Thread atecon
Am 10.12.2021 00:39 schrieb Allin Cottrell: Let me point out a new feature in git and snapshots: you can now create a string-valued series directly from an array of strings, subject to the requirement that the length of the array matches either the length of the dataset or the current sample

[Gretl-devel] Re: quiet option issues with 'append' and 'store'

2021-10-25 Thread atecon
Am 24.10.2021 22:08 schrieb Sven Schreiber: Am 24.10.2021 um 19:47 schrieb Allin Cottrell: On Sun, 24 Oct 2021, Sven Schreiber wrote: ... despite the doc saying that the quiet option should lead to no printout. True, the doc is not accurate on that point. Nonetheless, printing a bare

[Gretl-devel] Re: sscanf -> segfault

2021-09-22 Thread atecon
Am 22.09.2021 15:38 schrieb atecon: Am 21.09.2021 17:55 schrieb Hélio Guilherme: OK, Sven is talking about Regression tests, when me and Arthur are talking on Smoke or Acceptance tests I have the knowledge to make GUI tests, too. but we should focus at first on the more lower level. Arthur I

[Gretl-devel] Re: sscanf -> segfault

2021-09-22 Thread atecon
Am 21.09.2021 17:55 schrieb Hélio Guilherme: OK, Sven is talking about Regression tests, when me and Arthur are talking on Smoke or Acceptance tests I have the knowledge to make GUI tests, too. but we should focus at first on the more lower level. Arthur I may have a copy of those tests, but

[Gretl-devel] Re: sscanf -> segfault

2021-09-21 Thread atecon
Hi Hélio, Good idea. By the way, we have in our workspace repository a folder where to put tests into. Have a look here, please: https://sourceforge.net/p/gretl/workspace/ci/master/tree/tests/README.md I think it would be nice to write this test using gretl and/ or bash. The process could

[Gretl-devel] Re: special syntax for "end of matrix"

2021-09-14 Thread atecon
Am 14.09.2021 14:10 schrieb Allin Cottrell: On Tue, 14 Sep 2021, Riccardo (Jack) Lucchetti wrote: On Tue, 14 Sep 2021, atecon wrote: One question: How would such an "end" operator work "under the hood"? a) Is it triggering the computation of rows(X) AND cols(X) each t

[Gretl-devel] Re: special syntax for "end of matrix"

2021-09-14 Thread atecon
Am 14.09.2021 08:41 schrieb Riccardo (Jack) Lucchetti: The recent fix to the biprobit command led me to think about the fact that we currently don't have a way to indicate the element of a matrix that is second-from-last, third-from-last, etc. At present we have to use contructs like b =

[Gretl-devel] Re: Static code analysis of gretl

2021-08-24 Thread atecon
Hi Hélio, Thanks for your initiative. We have a repo on sourceforge with Allin's and some additional (assertion) tests mainly I wrote. I also have the plan to mirror the SF repo frequently on github, and execute some container running the test suit in case of changes in the source code. I

[Gretl-devel] Re: function package window on Ubuntu: one invisible icon

2021-08-23 Thread atecon
Am 23.08.2021 09:10 schrieb Sven Schreiber: Am 22.08.2021 um 23:34 schrieb Allin Cottrell: On Sun, 22 Aug 2021, Artur T. wrote: Am 21.08.21 um 22:01 schrieb Allin Cottrell: On Sat, 21 Aug 2021, Sven Schreiber wrote: Hi, looking at a current git build on Ubuntu with the Budgie desktop I'm

[Gretl-devel] Re: uniq() on NA-vector

2021-07-14 Thread atecon
Am 14.07.2021 15:37 schrieb Allin Cottrell: On Wed, 14 Jul 2021, atecon wrote: Am 14.07.2021 03:34 schrieb Allin Cottrell: > > > > > > matrix m1 = {1, NA; 3, NA} > > matrix m2 = {1, -1; 3, -3} > > > > eval quantile(m2, 0.5) > > eval quantile(m1, 0.5

[Gretl-devel] Re: uniq() on NA-vector

2021-07-13 Thread atecon
Am 14.07.2021 03:34 schrieb Allin Cottrell: On Tue, 13 Jul 2021, atecon wrote: Am 13.07.2021 10:40 schrieb Sven Schreiber: Am 13.07.2021 um 09:39 schrieb atecon: matrix m = {NA; NA} eval uniq(m) ? eval uniq(m) Data error The doc is silent about the case when all entries of the column

[Gretl-devel] Re: uniq() on NA-vector

2021-07-13 Thread atecon
Am 13.07.2021 10:40 schrieb Sven Schreiber: Am 13.07.2021 um 09:39 schrieb atecon: matrix m = {NA; NA} eval uniq(m) ? eval uniq(m) Data error The doc is silent about the case when all entries of the column are NA. I am a bit surprised that this leads to a data error and hence full stop

[Gretl-devel] uniq() on NA-vector

2021-07-13 Thread atecon
Hi all, I stumbled about the following: matrix m = {NA; NA} eval uniq(m) ? eval uniq(m) Data error The doc is silent about the case when all entries of the column are NA. I am a bit surprised that this leads to a data error and hence full stop. What about returning an empty matrix in this

[Gretl-devel] Re: gretl crash after 'hausman'

2021-07-13 Thread atecon
Am 11.07.2021 22:52 schrieb Allin Cottrell: On Sun, 11 Jul 2021, Sven Schreiber wrote: - open abdata and estimate something with OLS - run hausman - execute 'print $test' (which produces NA) Not having $test available in this case seems a bit lame. In git I've made $test and $pvalue

[Gretl-devel] Re: join to dataset with string-values series

2021-06-21 Thread atecon
Am 21.06.2021 07:39 schrieb atecon: Hi all, I've re-compiled gretl this morning using the latest git master state. A script which worked last Friday does not work anymore when trying to join a numerical time-series to a dataset which comprises both numeric and string-valued series. The error

[Gretl-devel] join to dataset with string-values series

2021-06-20 Thread atecon
Hi all, I've re-compiled gretl this morning using the latest git master state. A script which worked last Friday does not work anymore when trying to join a numerical time-series to a dataset which comprises both numeric and string-valued series. The error is "Cannot overwrite entire

[Gretl-devel] Re: [EXTERNAL] Re: the choose() function

2021-06-15 Thread atecon
Am 15.06.2021 08:14 schrieb Riccardo (Jack) Lucchetti: On Tue, 15 Jun 2021, atecon wrote: Hi Jack, thanks for the uodate. Did you run the test script https://sourceforge.net/p/gretl/git/ci/combinations-to-extra/tree/addons/extra/tests/run_test.sh which calls https://sourceforge.net/p/gretl

[Gretl-devel] Re: [EXTERNAL] Re: the choose() function

2021-06-14 Thread atecon
Hi Jack, thanks for the uodate. Did you run the test script https://sourceforge.net/p/gretl/git/ci/combinations-to-extra/tree/addons/extra/tests/run_test.sh which calls https://sourceforge.net/p/gretl/git/ci/combinations-to-extra/tree/addons/extra/tests/test_extra_matrix.inp ? Sorry, I

[Gretl-devel] Re: gretl virtual conference, June 3-4

2021-05-26 Thread atecon
Hi Adam, Yes, we plan to record the sessions. Best, Artur Am 27.05.2021 01:43 schrieb Adam Elderfield: Hi, As to make this accessible to everyone, is possible to record the sessions? Thanks Adam Get Outlook for Android [1] - FROM: Allin Cottrell SENT:

[Gretl-devel] Re: Cumulated values of matrix with missing values

2021-05-06 Thread atecon
Am 06.05.2021 08:38 schrieb Sven Schreiber: Am 06.05.2021 um 07:42 schrieb atecon: Hi all, I just would like to ask whether this behavior is actually expected: matrix m = {1, NA; 2, 3} print m eval cum(m) ? print m m (2 x 2)     1   nan     2 3 ? eval cum(m)     1   nan     3

[Gretl-devel] Cumulated values of matrix with missing values

2021-05-05 Thread atecon
Hi all, I just would like to ask whether this behavior is actually expected: matrix m = {1, NA; 2, 3} print m eval cum(m) ? print m m (2 x 2) 1 nan 2 3 ? eval cum(m) 1 nan 3 nan I expected the entry (2,2) to be 3 as this is the first valid value of the 2nd

[Gretl-devel] Re: buttons at bottom of settings dialog off-screen

2021-04-27 Thread atecon
Am 26.04.2021 19:44 schrieb Sven Schreiber: Hi, I remember there was a similar problem recently with a gnuplot dialog: On a Linux Budgie desktop system on a 15 inch Laptop screen (not very high definition/resolution) I couldn't see nor move the buttons of the main gretl settings dialog to be

[Gretl-devel] Inefficiency in join command?

2021-03-31 Thread atecon
Hi all, I just have to work a with a large panel dataset (left-hand side) to which I would like to join a couple of series from a RHS-dataset. The correct mapping is done via two keys. I did some performance check, and it seems that the current implementation runs the sorting/ mapping for

[Gretl-devel] Re: SIGABRT

2021-03-08 Thread atecon
Am 08.03.2021 09:06 schrieb Marcin Błażejowski: Hi, there is a double free detected in tcache 2: function void foo (const scalar *X)     X += 1     eval X end function Z = 1 foo(Z) Hi Marcin, do you say gretl crashes on your side? Here on Ubuntu 18.10 (and 20.04) with last week's git

[Gretl-devel] Re: CRASH: passed integer value out-of bounds

2021-03-03 Thread atecon
Am 03.03.2021 15:38 schrieb Allin Cottrell: On Wed, 3 Mar 2021, Sven Schreiber wrote: Am 03.03.2021 um 13:31 schrieb atecon: with latest git version under Ubuntu 18.04 I obtain a crash when running the following script: Confirmed with a recent snapshot on Windows. That one looks pretty bad

[Gretl-devel] Re: CRASH: passed integer value out-of bounds

2021-03-03 Thread atecon
Am 03.03.2021 14:23 schrieb Allin Cottrell: On Wed, 3 Mar 2021, atecon wrote: with latest git version under Ubuntu 18.04 I obtain a crash when running the following script: clear set verbose off function void simple (const int N[2::]) print "very simple" end function simple(1

[Gretl-devel] Re: CRASH: passed integer value out-of bounds

2021-03-03 Thread atecon
Am 03.03.2021 14:06 schrieb Sven Schreiber: Am 03.03.2021 um 13:31 schrieb atecon: with latest git version under Ubuntu 18.04 I obtain a crash when running the following script: Confirmed with a recent snapshot on Windows. That one looks pretty bad, but... Thanks for confirming this, Sven

[Gretl-devel] CRASH: passed integer value out-of bounds

2021-03-03 Thread atecon
Hi, with latest git version under Ubuntu 18.04 I obtain a crash when running the following script: clear set verbose off function void simple (const int N[2::]) print "very simple" end function simple(1) The shell prints: free(): double free detected in tcache 2 Aborted (core

[Gretl-devel] Re: inconsistent naming of periodic dummies

2021-03-02 Thread atecon
Am 02.03.2021 15:10 schrieb Sven Schreiber: Am 18.02.2021 um 08:07 schrieb atecon: After re-thinking my post, I think I should propose some way to harmonize things: If one applies the "dummify" command to some discrete series named "foo", one gets a list of new

[Gretl-devel] Re: inverse of stack() function

2021-03-02 Thread atecon
Am 02.03.2021 15:11 schrieb Sven Schreiber: Am 26.02.2021 um 10:51 schrieb Sven Schreiber: Am 19.02.2021 um 13:52 schrieb Allin Cottrell: On Fri, 19 Feb 2021, Riccardo (Jack) Lucchetti wrote: I can't think of an easier way of doing this, and your function seems to me a good candidate for

[Gretl-devel] Re: foreach loop over (bundled) list

2021-02-19 Thread atecon
Am 19.02.2021 09:53 schrieb Sven Schreiber: Am 19.02.2021 um 09:26 schrieb atecon: Hi, I am not sure that this is really a bug or part of the spec: While the foreach-loop iterates 4 times when applied to list X, it only iterates a single time when iterating over B.X where B is a bundle

[Gretl-devel] foreach loop over (bundled) list

2021-02-19 Thread atecon
Hi, I am not sure that this is really a bug or part of the spec: While the foreach-loop iterates 4 times when applied to list X, it only iterates a single time when iterating over B.X where B is a bundle. clear set verbose off open denmark.gdt -q list X = dataset bundle B = _(X) loop

[Gretl-devel] Re: script editor: stay in current line after auto-indent?

2021-02-18 Thread atecon
Am 18.02.2021 18:11 schrieb Allin Cottrell: On Thu, 18 Feb 2021, atecon wrote: Am 18.02.2021 17:32 schrieb Allin Cottrell: On Wed, 17 Feb 2021, Sven Schreiber wrote: Hi, clicking the auto-indent button in the script editor moves me to the top of the file. This is annoying if the file

[Gretl-devel] Re: script editor: stay in current line after auto-indent?

2021-02-18 Thread atecon
Am 18.02.2021 17:32 schrieb Allin Cottrell: On Wed, 17 Feb 2021, Sven Schreiber wrote: Hi, clicking the auto-indent button in the script editor moves me to the top of the file. This is annoying if the file is not very short. Can GTK be told not to move? Heh, it's not exactly a matter of

[Gretl-devel] Re: inconsistent naming of periodic dummies

2021-02-17 Thread atecon
Am 17.02.2021 20:51 schrieb Artur Tarassow: Hi, just by chance I found that periodic dummies are not named consistently. Currently we have: - quarterly data: dq1 to dq4 - monthly data: dm1 to dm12 - daily (5 days): dummy_1 to dummy_5 I am wondering whether some harmonization is useful here?

[Gretl-devel] Re: Failed to compile 2020a on linux

2021-01-19 Thread atecon
Am 19.01.2021 11:08 schrieb Sven Schreiber: Am 19.01.2021 um 09:14 schrieb atecon: Am 19.01.2021 08:48 schrieb Riccardo (Jack) Lucchetti: On Tue, 19 Jan 2021, Artur Tarassow wrote: Hi Allin, I just tried to compile gretl under Ubuntu 18.04 and Ubuntu 20.04. [...] ../lib/src/gensyntax.c

[Gretl-devel] Re: foreach-loop over arrays

2021-01-08 Thread atecon
Am 08.01.2021 09:54 schrieb Riccardo (Jack) Lucchetti: On Fri, 8 Jan 2021, Artur Tarassow wrote: 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

[Gretl-devel] Re: Problem with ODBC query

2020-03-30 Thread atecon
> On Sun, 29 Mar 2020, Riccardo (Jack) Lucchetti wrote: > > > OK, "--no-align" it is! That's now in git. This is great Allin! Works perfect! The current implementation is very useful for (at least my) daily work. Best wishes and stay all healthy, Artur

[Gretl-devel] Re: Problem with ODBC query

2020-03-29 Thread atecon
> On Sat, 28 Mar 2020, Riccardo (Jack) Lucchetti wrote: > > > I guess we could institute "fill from the top" behaviour for ODBC > importation if we don't have any information on how the observations > should be aligned. Maybe this should be conditional on an option > flag? If so, any ideas

[Gretl-devel] Re: Problem with ODBC query

2020-03-25 Thread atecon
> On Mon, 23 Mar 2020, atecon(a)posteo.de wrote: > > > I see what you mean (I think!). Getting this right involves some > brain-bending mapping between 1-based SQL columns, 0-based C arrays, > and 1-based dataset series. But I believe this should now work > better in cu

[Gretl-devel] Re: Problem with ODBC query

2020-03-23 Thread atecon
Hi Allin, thanks for your work. Unfortunately, it only partly works here. It works fine in case both imported series, here "klima" and "klima" saldo are both of type SQL_DECIMAL and column "DATUM" is of type SQL_DATE: nulldata 5 -p setobs 7 2018-01-01 --time-series string q = "SELECT DATUM,

[Gretl-devel] Re: ODBC connector

2020-02-24 Thread atecon
Am 24.02.2020 13:15 schrieb Allin Cottrell: On Mon, 24 Feb 2020, atecon wrote: I just compiled latest source code from git. Unfortunately, the 'open' command still returns an error when calling the function: function void open_odbc_connection (string DSN, string USER, string PW) open dsn

[Gretl-devel] Re: ODBC connector

2020-02-24 Thread atecon
Hi Allin, Am 23.02.2020 18:41 schrieb Allin Cottrell: > On Wed, 19 Feb 2020, Sven Schreiber wrote: > >> Am 19.02.2020 um 10:19 schrieb atecon: >> > >> > 1) I want to write a open_odbc_connection() function. Unfortunately, >> > the 'open' command cannot

[Gretl-devel] ODBC connector

2020-02-19 Thread atecon
Hi all, for the first time I am working with gretl's ODBC connector. So far it seems to work fine for standard queries using the Exasol data base on linux. However, I stumbled over to 2 issues: 1) I want to write a open_odbc_connection() function. Unfortunately, the 'open' command cannot be