[Gretl-devel] Re: stricter options syntax for "plot" in 2024a?

2024-05-09 Thread Artur T.
Am 09.05.24 um 12:08 schrieb Sven Schreiber: Am 09.05.2024 um 11:34 schrieb Artur T.: Am 09.05.24 um 02:20 schrieb Cottrell, Allin: Thanks, Helio. What you reference via the link below is my "personal" collection of test scripts (which has evolved since then). Of course anyone

[Gretl-devel] Re: stricter options syntax for "plot" in 2024a?

2024-05-09 Thread Artur T.
Am 09.05.24 um 02:20 schrieb Cottrell, Allin: Thanks, Helio. What you reference via the link below is my "personal" collection of test scripts (which has evolved since then). Of course anyone is welcome to run these tests, but I haven't made a serious effort to make them portable for others.

[Gretl-devel] Re: User guide plotting chapter: outdated section

2024-02-29 Thread Artur T.
Am 29.02.24 um 12:09 schrieb Riccardo (Jack) Lucchetti: On 29/02/2024 12:05, Sven Schreiber wrote: Hi, looking at the chapter "6 Graphs and plots", it seems to me that the sub-section "Publication-quality graphics: advanced options" (within 6.1) is quite outdated. It talks of sizes and

[Gretl-devel] Re: printf: ignore nan values in a matrix

2024-02-16 Thread Artur T.
Am 16.02.24 um 18:39 schrieb Riccardo (Jack) Lucchetti: On 16/02/2024 17:38, Artur T. wrote: Hi Gretl community, I am wondering whether there is a way to ignore printing NA values in a matrix when calling the printf command Suppose you have a matrix like this:     Model=1

[Gretl-devel] printf: ignore nan values in a matrix

2024-02-16 Thread Artur T.
Hi Gretl community, I am wondering whether there is a way to ignore printing NA values in a matrix when calling the printf command Suppose you have a matrix like this: Model=1 Model=2 Model=3 Model=4 INT nan -0.12 -0.17 -0.06

[Gretl-devel] modeltab --output within function

2024-02-16 Thread Artur T.
Hi all, I am trying to store a model table through the modeltab command. I am calling the command _within_ a function. However, even though the model objects seem to get stored, the table will not be written to a file (either tex or rtf). Is modeltab --output="@filename" not supposed to

[Gretl-devel] Re: Creation of a Pull Request (Merge Request)

2024-01-24 Thread Artur T.
Hi folks, Am 23.01.24 um 08:04 schrieb Sven Schreiber: Am 23.01.2024 um 00:29 schrieb Hélio Guilherme: Dear Professors :) a.k.a. Gretl development team. At request from Artut Tarassow, I have prepared a GitHub Actions configuration, that gets the tests from another repository at

[Gretl-devel] Re: Right of mat2list() to overwrite series values

2024-01-20 Thread Artur T.
Am 20.01.24 um 00:47 schrieb Cottrell, Allin: On Thu, Jan 11, 2024 at 3:22 AM Artur T. wrote: I am not sure whether the following is actually intended or not. The help does not mention any limits, though. For a project, I stumbled over the following: 1. Create a matrix of residuals with NAs

[Gretl-devel] Right of mat2list() to overwrite series values

2024-01-11 Thread Artur T.
Hi all, I am not sure whether the following is actually intended or not. The help does not mention any limits, though. For a project, I stumbled over the following: 1. Create a matrix of residuals with NAs as initial values. 2. Name the columns of the matrix. 3. Store the columns of the

[Gretl-devel] Re: For-loop over a 'bundled' string array

2024-01-02 Thread Artur T.
Am 21.12.23 um 16:54 schrieb Cottrell, Allin: On Wed, Dec 20, 2023 at 3:41 AM Artur T. wrote: Hi all, Let's say we have a string array 'input'. The first example shows that the for-loop can be used for printing each element of the array. However, as the 2nd example shows, if the string

[Gretl-devel] For-loop over a 'bundled' string array

2023-12-20 Thread Artur T.
Hi all, Let's say we have a string array 'input'. The first example shows that the for-loop can be used for printing each element of the array. However, as the 2nd example shows, if the string array is stored in bundle B this does not seem to work currently. I could not find anything in

[Gretl-devel] has_string_table for copied series

2023-12-14 Thread Artur T.
Hi all, I stumbled over the following: open mrw --quiet series factor = OECD + 1 # one-based strings svalues = defarray("non-oecd", "oecd") stringify(factor, svalues) series z = factor # just a copy eval getinfo(factor) # has_string_table = 1 eval getinfo(z) # has_string_table = 0 While

[Gretl-devel] Binary Logit with string series

2023-11-13 Thread Artur T.
Hi all, I just stumbled over the following challenge. In the first example, I run a binary logit with a numeric (discrete) encoded variable "dirnum". In the second example, the dependent is string-valued series "dirstr" with only two distinct values ("down", "up"). The logit command

[Gretl-devel] Re: function call within loop fails

2023-07-26 Thread Artur T.
Hi Allin, Thanks for the quick fix which works fine here on my machine. Also, thanks, Sven, for confirming the bug. Best Artur Am 26.07.23 um 18:37 schrieb Cottrell, Allin: On Wed, Jul 26, 2023 at 9:00 AM Artur T. wrote: Hi folks, using latest git under Ubuntu yields a weird error

[Gretl-devel] function call within loop fails

2023-07-26 Thread Artur T.
Hi folks, using latest git under Ubuntu yields a weird error with a loop. The following definitely used to work in the past but fails now with an "Data error". The function get_dynamical_features() simply constructs a list of lags of some series. I call the function within a loop three

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

2023-07-13 Thread Artur T.
Am 12.07.23 um 14:41 schrieb 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

[Gretl-devel] PRE-RELEASE: Testscripts fail

2023-07-12 Thread Artur T.
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 failed on the latest git-version: https://sourceforge.net/p/gretl/workspace/ci/master/tree/tests/test_scripts/fundamentals/check_trace.inp I am pretty

[Gretl-devel] Impressions of the 8th gretl conference

2023-06-21 Thread Artur T.
Dear users of the gretl mailing list, We are pleased to announce that the 8th gretl conference was held last week in Gdansk, Poland. For those who would like to see what happened during this event, please take a look at our: - mastodon page (https://econtwitter.net/@gretl) and - twitter

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

2023-05-14 Thread Artur T.
Am 14.05.23 um 16:07 schrieb Cottrell, Allin: On Sun, May 14, 2023 at 5:34 AM Sven Schreiber wrote: 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

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

2023-05-01 Thread Artur T.
Am 01.05.23 um 13:23 schrieb 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

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

2023-04-09 Thread 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. Here an example: clear set verbose off nulldata 3 series y = normal() setinfo y

[Gretl-devel] Re: ERROR: aggregate() w. user-defined functions

2023-03-13 Thread Artur T.
Am 13.03.23 um 13:03 schrieb Cottrell, Allin: On Mon, Mar 13, 2023 at 7:33 AM Artur T. wrote: Hi all, I obtain an error with the aggregate() function when calling a user-defined function for aggregation. The following example works fine, if one groups the data by a single variable

[Gretl-devel] ERROR: aggregate() w. user-defined functions

2023-03-13 Thread Artur T.
Hi all, I obtain an error with the aggregate() function when calling a user-defined function for aggregation. The following example works fine, if one groups the data by a single variable but it fails with a second group-by variable: set verbose off clear open grunfeld -q function scalar

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

2022-12-03 Thread Artur T.
Am 03.12.22 um 12:49 schrieb Artur T.: Am 02.12.22 um 14:38 schrieb 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

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

2022-12-03 Thread Artur T.
Am 02.12.22 um 14:38 schrieb 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

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

2022-12-03 Thread Artur T.
Am 02.12.22 um 14:38 schrieb 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. Yes, may be a valid

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

2022-12-03 Thread Artur T.
Am 01.12.22 um 17:51 schrieb 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. It should be added that the help states By

[Gretl-devel] Re: catch failing within loop

2022-12-03 Thread Artur T.
Am 02.12.22 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 What I'm getting on gretl 2022c is that in the first loop

[Gretl-devel] Re: bare matrix initialization

2022-12-02 Thread Artur T.
Am 02.12.22 um 10:52 schrieb 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

[Gretl-devel] Re: bare matrix initialization

2022-12-02 Thread Artur T.
Am 01.12.22 um 17:06 schrieb Sven Schreiber: Hi, 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 one basic programming principle:

[Gretl-devel] Re: automatic line continuation between parentheses official?

2022-08-01 Thread Artur T.
Am 31.07.22 um 18:46 schrieb Sven Schreiber: Am 31.07.2022 um 18:38 schrieb Cottrell, Allin: On Sun, Jul 31, 2022 at 10:59 AM Sven Schreiber wrote: I don't think this is documented, or is it? Is this official and reliably a part of the hansl syntax? The criterion for automatic

[Gretl-devel] garch crash

2022-07-20 Thread Artur T.
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 Best, Artur ___ Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it To

[Gretl-devel] Re: apparent bug with imaxr and NAs

2022-06-27 Thread Artur T.
Am 27.06.22 um 15:41 schrieb Sven Schreiber: Am 27.06.2022 um 15:31 schrieb Sven Schreiber: Am 27.06.2022 um 14:35 schrieb Cottrell, Allin: I think the right thing to do is set the result to NA if an NA value is encountered in the row or column in question. That's now in git. Thanks, Allin,

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

2022-05-26 Thread Artur T.
Am 19.05.22 um 18:03 schrieb Sven Schreiber: Am 17.05.2022 um 22:43 schrieb Sven Schreiber: Am 17.05.2022 um 17:29 schrieb Artur T.: Am 17.05.22 um 17:26 schrieb Sven Schreiber: But it seems to confirm that the problem is not with fsboost. Hi folks, I already told Sven so but here it's

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

2022-05-17 Thread Artur T.
Am 17.05.22 um 17:26 schrieb Sven Schreiber: Am 17.05.2022 um 17:21 schrieb Riccardo (Jack) Lucchetti: On Tue, 17 May 2022, Sven Schreiber wrote: Hi, with a Windows snapshot from April I found that the sample script of the fsboost contributed package produces an error. This was weird because

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

2022-05-02 Thread Artur T.
Am 02.05.22 um 17:01 schrieb Sven Schreiber: Am 02.05.2022 um 16:54 schrieb Artur T.: Am 02.05.22 um 16:53 schrieb Sven Schreiber: Am 02.05.2022 um 16:51 schrieb Artur T.: Am 02.05.22 um 16:45 schrieb Sven Schreiber: Hi, trying to specify some cointegration restrictions after estimating

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

2022-05-02 Thread Artur T.
Am 02.05.22 um 16:53 schrieb Sven Schreiber: Am 02.05.2022 um 16:51 schrieb Artur T.: Am 02.05.22 um 16:45 schrieb Sven Schreiber: Hi, trying to specify some cointegration restrictions after estimating a VECM in the GUI. The text at the top says "right-click for some abbrevia

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

2022-05-02 Thread Artur T.
Am 02.05.22 um 16:45 schrieb Sven Schreiber: 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 on the fly again). But when I right-click, nothing

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

2022-04-01 Thread Artur T.
Am 01.04.22 um 00:08 schrieb Allin Cottrell: On Thu, 31 Mar 2022, Allin Cottrell wrote: On Wed, 30 Mar 2022, Artur T. wrote: Am 29.03.22 um 19:52 schrieb Allin Cottrell: On Tue, 29 Mar 2022, atecon wrote: Am 29.03.2022 12:24 schrieb Marcin Błażejowski: Weird or not, it's now fixed

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

2022-03-30 Thread Artur T.
Am 29.03.22 um 19:52 schrieb Allin Cottrell: On Tue, 29 Mar 2022, atecon wrote: Am 29.03.2022 12:24 schrieb Marcin Błażejowski: Weird or not, it's now fixed in git. Hi Allin, I updated our test suit on this topic and got the following interesting cases: matrix m = {1, 4; 2, 5; 3, 6}

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

2022-01-19 Thread Artur T.
Am 19.01.22 um 12:34 schrieb Sven Schreiber: Am 18.01.2022 um 17:58 schrieb Allin Cottrell: Here's my simple case. Can you see what extra stuff you need to introduce to provoke the problem? OK, thanks, this is helpful. I managed to provoke the same error message that I had before (no obs

[Gretl-devel] Re: outdated gretl info at the AEA

2021-12-31 Thread Artur T.
Am 31.12.21 um 15:12 schrieb Sven Schreiber: Am 31.12.2021 um 15:10 schrieb Artur T.: Am 28.12.21 um 18:25 schrieb Sven Schreiber: Hi, just saw this: https://www.aeaweb.org/rfe/showRes.php?rfe_id=1349_id=89 Probably not terribly important, but maybe we should contact "someone" the

[Gretl-devel] Re: outdated gretl info at the AEA

2021-12-31 Thread Artur T.
Am 28.12.21 um 18:25 schrieb Sven Schreiber: Hi, just saw this: https://www.aeaweb.org/rfe/showRes.php?rfe_id=1349_id=89 Probably not terribly important, but maybe we should contact "someone" there to have it updated? Hi Sven, not sure what you saw some days ago. But today the link looks

[Gretl-devel] Re: Nice daily dataset

2021-11-10 Thread Artur T.
Am 10.11.21 um 22:41 schrieb Riccardo (Jack) Lucchetti: Folks, while trying out a few time-series things, I realised we don't have a nice 7-day-per-week sample dataset to play with weekly + yearly seasonality, exogenous effects etc. So I found one from Kaggle and packaged it in gdt format

[Gretl-devel] Re: Current state with distance()

2021-10-31 Thread Artur T.
Am 30.10.21 um 21:01 schrieb Allin Cottrell: On Sat, 30 Oct 2021, Artur T. wrote: Of course, the order does not matter. However, that's why I asked whether there exists a de facto standard. I simply tried to show what sklearn (a de facto standard for data science) returns. By the way

[Gretl-devel] Re: Current state with distance()

2021-10-30 Thread Artur T.
Am 30.10.21 um 17:59 schrieb Allin Cottrell: On Sat, 30 Oct 2021, Allin Cottrell wrote: [D]o we really want to make the return value in the X,Y case a matrix rather than a vector? I'm not sure that's very helpful, but if we stay with a matrix result I think Artur is right: in a matrix

[Gretl-devel] Re: Current state with distance()

2021-10-30 Thread Artur T.
Am 30.10.21 um 11:58 schrieb Riccardo (Jack) Lucchetti: On Sat, 30 Oct 2021, Artur T. wrote: But in fact I think that when argument 3 is non-null, having a matrix as output is preferable aafter all. If we all agree, I can take care of this later today. I think that's useful. OK, it's now

[Gretl-devel] Re: Current state with distance()

2021-10-30 Thread Artur T.
Am 30.10.21 um 10:43 schrieb Riccardo (Jack) Lucchetti: On Sat, 30 Oct 2021, Artur T. wrote: Am 30.10.21 um 10:37 schrieb Artur T.: Hi, I am currently testing the new distance() function under development. Thank you again for this new feature. I am focusing on the pairwise case where both

[Gretl-devel] Re: Current state with distance()

2021-10-30 Thread Artur T.
Am 30.10.21 um 10:37 schrieb Artur T.: Hi, I am currently testing the new distance() function under development. Thank you again for this new feature. I am focusing on the pairwise case where both matrices X and Y are given. Here is a toy example: Also, the help text does not say anything

[Gretl-devel] Current state with distance()

2021-10-30 Thread Artur T.
Hi, I am currently testing the new distance() function under development. Thank you again for this new feature. I am focusing on the pairwise case where both matrices X and Y are given. Here is a toy example: clear set verbose off matrix X = {1, 2; 3, 4} matrix Y = {1, 2; 0, 3}

[Gretl-devel] Edge cases for "end" operator

2021-10-26 Thread Artur T.
Hi all, I wrote some unit-tests for the recent "end" operator. See here: https://sourceforge.net/p/gretl/workspace/ci/09881e0435c18730b1a8b54210dc23f463e245fc/ I found some edge cases for which the current behavior may be discussed: clear set verbose off WHICH = 1 if WHICH == 1 bundles

[Gretl-devel] Re: minor 'list' remarks

2021-10-01 Thread Artur T.
Am 01.10.21 um 18:56 schrieb Sven Schreiber: Hi, some random-but-inspired-by-real-work thoughts about gretl's lists: -- The fact that you can use index ranges with lists doesn't seem to be documented, or is it? For example, a little bit to my amazement, this works: open denmark list L = LRM

[Gretl-devel] Re: questions about Artur's calendar_utils package

2021-10-01 Thread Artur T.
Am 01.10.21 um 15:52 schrieb Sven Schreiber: Am 01.10.2021 um 15:44 schrieb Artur T.: Am 01.10.21 um 15:32 schrieb Sven Schreiber: clearly documented.) So I think internally the function must not use $pd if $datatype gives you 3 (panel data code) [or 0 (no data)]. True, the panel case

[Gretl-devel] Re: questions about Artur's calendar_utils package

2021-10-01 Thread Artur T.
Am 01.10.21 um 15:32 schrieb Sven Schreiber: Am 01.10.2021 um 15:23 schrieb Artur T.: Hi Am 30.09.21 um 23:03 schrieb Sven Schreiber: Maybe there's a case for using an integer arg similar to $pd here, allowing values 4 and 12. Ah, good point. I've changed the signature to <> fu

[Gretl-devel] Re: questions about Artur's calendar_utils package

2021-10-01 Thread Artur T.
Hi Am 30.09.21 um 23:03 schrieb Sven Schreiber: Am 30.09.2021 um 19:40 schrieb Artur T.: Am 30.09.21 um 18:27 schrieb Artur T.: Am 30.09.21 um 17:38 schrieb Sven Schreiber: Am 30.09.2021 um 17:29 schrieb Artur T.: I am just working on a proposal supporting both quarterly and monthly

[Gretl-devel] Re: questions about Artur's calendar_utils package

2021-09-30 Thread Artur T.
Am 30.09.21 um 18:27 schrieb Artur T.: Am 30.09.21 um 17:38 schrieb Sven Schreiber: Am 30.09.2021 um 17:29 schrieb Artur T.: Am 30.09.21 um 16:13 schrieb Sven Schreiber: Then, I'm observing that the result for date_to_iso8601("1984", "%Y") is: 19831231. Is this a bug? I

[Gretl-devel] Re: questions about Artur's calendar_utils package

2021-09-30 Thread Artur T.
Am 30.09.21 um 17:38 schrieb Sven Schreiber: Am 30.09.2021 um 17:29 schrieb Artur T.: Am 30.09.21 um 16:13 schrieb Sven Schreiber: Then, I'm observing that the result for date_to_iso8601("1984", "%Y") is: 19831231. Is this a bug? I would have expected 19840101. Looks lik

[Gretl-devel] Re: questions about Artur's calendar_utils package

2021-09-30 Thread Artur T.
Am 30.09.21 um 16:13 schrieb Sven Schreiber: Hi Artur (and everybody who's interested), Hi Sven I'm trying to leverage your calendar-related package and have some questions, especially about the function date_to_iso8601. First of all, it would be useful if the doc explained a little bit more

[Gretl-devel] Re: Oh no! Another chat service. gretl - slack

2021-09-24 Thread Artur T.
Hi Hélio, even though I like slack and use some very basic features for communicating with one of my co-authors, I am not too experienced with it. I know that it is used as a support and discussion channel. For instance, there exist slack channels for Python and Julia (and many more

[Gretl-devel] Re: Inefficiency in join command?

2021-09-10 Thread Artur T.
Am 10.09.21 um 12:26 schrieb Sven Schreiber: Am 31.03.2021 um 14:17 schrieb atecon: In a first experiment I join all series from the RHS dataset by means of the wildcard operator: which takes about 5 sec. here. Then I re-run the experiment by successively increasing the number of series to

[Gretl-devel] Re: auto-indentation: tiny remaining issue

2021-08-22 Thread Artur T.
Am 22.08.21 um 10:30 schrieb Sven Schreiber: Am 22.08.2021 um 10:22 schrieb Artur T.: Am 22.08.21 um 10:17 schrieb Sven Schreiber: function void F(int a, int b)    matrix x (The line starts 2 columns behind the start of the function argument signature. I'm

[Gretl-devel] Re: auto-indentation: tiny remaining issue

2021-08-22 Thread Artur T.
Am 22.08.21 um 10:17 schrieb Sven Schreiber: Hi, one more thing which may be nice to fix for the release: I'm seeing (on Win and Linux) the following problem in placing the first line of code like this (hope the spacing goes through the email): function void F(int a,     int b)   

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

2021-08-22 Thread Artur T.
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 "missing" the icon "look on server" in the window with the function packages list. But the button is there and becomes visible on

[Gretl-devel] Re: The 2021c release candidate is available (with apologies for cross-posting)

2021-08-18 Thread Artur T.
Hi, Thanks for the release candidate. The gretl test suit runs fine here on my Ubuntu 21.04 machine. Best, Artur Am 17.08.21 um 16:05 schrieb Riccardo (Jack) Lucchetti: Hi all, on behalf of the development team, I'm glad to announce that we're about to release gretl 2021c. The official

[Gretl-devel] Re: a small generalization of the replace() interface

2021-07-23 Thread Artur T.
Am 22.07.21 um 18:42 schrieb Sven Schreiber: Hi, the replace() function takes as 2nd and 3rd arguments the mapping pairs of values. What about enabling a little bit of syntactic sugar for the case of a matrix with exactly 2 columns, standing in for the respective vectors, making the 3rd

[Gretl-devel] Re: about the name "fft2"

2021-07-11 Thread Artur T.
Am 11.07.21 um 21:12 schrieb Allin Cottrell: On Sun, 11 Jul 2021, Sven Schreiber wrote: Am 11.07.2021 um 19:15 schrieb Artur T.: Am 09.07.21 um 19:01 schrieb Sven Schreiber: - ...or biting the backwards-incompatibility bullet and change the original fft() to do what fft2() does now. (My

[Gretl-devel] Re: about the name "fft2"

2021-07-11 Thread Artur T.
Am 09.07.21 um 19:01 schrieb Sven Schreiber: Hi, I was going to move the documentation of the Fast Fourier Transform to a more fitting place in the guide (away from "special functions in genr", because genr is not really relevant). Then I noticed that the section is a bit outdated because it

[Gretl-devel] Re: checking the status of "set" options

2021-06-20 Thread Artur T.
Am 20.06.21 um 12:44 schrieb Sven Schreiber: Am 20.06.2021 um 12:40 schrieb Riccardo (Jack) Lucchetti: On Sun, 20 Jun 2021, Sven Schreiber wrote: This would be quite nice. Or we could add a key to $sysinfo. Yes, that's also useful and would avoid having another accessor. I don't think

[Gretl-devel] Re: checking the status of "set" options

2021-06-20 Thread Artur T.
Am 20.06.21 um 12:40 schrieb Riccardo (Jack) Lucchetti: On Sun, 20 Jun 2021, Sven Schreiber wrote: Am 20.06.2021 um 12:08 schrieb Artur T.: Am 19.06.21 um 20:40 schrieb Riccardo (Jack) Lucchetti: On Sat, 19 Jun 2021, Allin Cottrell wrote: ? set shell_ok shell_ok: boolean (on/off

[Gretl-devel] Re: varlist inside function (and furthermore strange append effect)

2021-06-20 Thread Artur T.
Am 20.06.21 um 00:36 schrieb Sven Schreiber: Hi, for the first thing, here's a minimal example: function void checko(list L)     list L print # d_LRY d_LRM (expected result)     varlist  # weird:   0) const   5) [masked]    6) [masked] end function open denmark list L = LRY LRM

[Gretl-devel] Re: checking the status of "set" options

2021-06-20 Thread Artur T.
Am 19.06.21 um 20:40 schrieb Riccardo (Jack) Lucchetti: On Sat, 19 Jun 2021, Allin Cottrell wrote: ? set shell_ok shell_ok: boolean (on/off), currently on But that's not programmatic of course. You do have the --to-file option to "set". And I suppose we could offer a bundle of all set

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

2021-06-15 Thread Artur T.
Am 15.06.21 um 18:30 schrieb Artur T.: Am 15.06.21 um 18:29 schrieb Sven Schreiber: Am 15.06.2021 um 18:24 schrieb Riccardo (Jack) Lucchetti: On Tue, 15 Jun 2021, Sven Schreiber wrote: If you like it, feel free to merge back into master. I'd rather leave that to those who know how to run

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

2021-06-15 Thread Artur T.
Am 15.06.21 um 18:29 schrieb Sven Schreiber: Am 15.06.2021 um 18:24 schrieb Riccardo (Jack) Lucchetti: On Tue, 15 Jun 2021, Sven Schreiber wrote: If you like it, feel free to merge back into master. I'd rather leave that to those who know how to run the relevant test script for this case,

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

2021-06-13 Thread Artur T.
Am 13.06.21 um 13:27 schrieb Allin Cottrell: On Sun, 13 Jun 2021, Riccardo (Jack) Lucchetti wrote: On Sun, 13 Jun 2021, Artur T. wrote: If we agree that this shall become part of the extra package, I add 2-3 tests to our test suit for extra. Nice work, Artur. I vote for "combina

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

2021-06-13 Thread Artur T.
Am 13.06.21 um 12:55 schrieb Artur T.: Am 13.06.21 um 12:45 schrieb Riccardo (Jack) Lucchetti: On Sun, 13 Jun 2021, Artur T. wrote: If we agree that this shall become part of the extra package, I add 2-3 tests to our test suit for extra. Nice work, Artur. I vote for "combinations()&quo

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

2021-06-13 Thread Artur T.
Am 13.06.21 um 12:45 schrieb Riccardo (Jack) Lucchetti: On Sun, 13 Jun 2021, Artur T. wrote: If we agree that this shall become part of the extra package, I add 2-3 tests to our test suit for extra. Nice work, Artur. I vote for "combinations()". Anyway, let's not forg

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

2021-06-13 Thread Artur T.
Am 10.06.21 um 10:57 schrieb Riccardo (Jack) Lucchetti: Folks, while revising some old code I stumbled into a function that I'd written a while back, and I realised this could go into the extra package. Note: for large input vectors (n > 5) the recursion approach really is much slower than

[Gretl-devel] How to print values of a bundle

2021-06-06 Thread Artur T.
Hi all, I've stumbled about this puzzling and seemingly simple task: Iterate over a a bundle and print the key-value pairs. Here a simple example: bundle B = _(a = 1, b = 2) loop foreach i B printf "key: %s, value: %d\n", "$i", $i # OR: printf "key: $i, value: %d\n", , $i endloop

[Gretl-devel] Re: building gretl

2021-05-09 Thread Artur T.
Am 08.05.21 um 21:23 schrieb Sven Schreiber: Am 08.05.2021 um 19:50 schrieb Marcin Błażejowski: On 08.05.2021 19:39, Allin Cottrell wrote: Hello all, I'd like to test the water for a change in the gretl build process which could be unpopular but which I think is needed -- namely, disallowing

[Gretl-devel] Re: The any() function

2021-04-30 Thread Artur T.
Hi Am 01.05.21 um 01:53 schrieb Allin Cottrell: On Thu, 29 Apr 2021, Riccardo (Jack) Lucchetti wrote: Folks, from time to time I need to check if a certain object belongs or not to a set of integers. For example, suppose you have a panel and you want to select only certain units, whose id

Re: [Gretl-devel] string-valued series

2019-03-02 Thread Artur T .
Am 28.02.19 um 18:56 schrieb Allin Cottrell: > On Thu, 28 Feb 2019, Sven Schreiber wrote: > >> Am 27.02.2019 um 20:13 schrieb Allin Cottrell: > This is now in place for series, lists, matrices, arrays and strings (in > which case the range refers to lines of text. Some examples below. You > can

Re: [Gretl-devel] string-valued series

2019-02-27 Thread Artur T .
Hi, Am 27.02.19 um 20:13 schrieb Allin Cottrell: > On Wed, 27 Feb 2019, Riccardo (Jack) Lucchetti wrote: > >> On Tue, 26 Feb 2019, Artur T. wrote: >> >>>> - printing out an array of strings requires a loop if it has more >>>> than 9 elements. In some c

Re: [Gretl-devel] Crash when trying to access an element in a nested bundle

2019-02-26 Thread Artur T .
Am 26.02.19 um 22:47 schrieb Allin Cottrell: > On Tue, 26 Feb 2019, Artur T. wrote: > >> Dear all, >> >> I've attached a json-file and ran the following example using latest git on ubuntu 18.10. Gretl crashes at some point when trying to access some element o

[Gretl-devel] Crash when trying to access an element in a nested bundle

2019-02-26 Thread Artur T .
Dear all, I've attached a json-file and ran the following example using latest git on ubuntu 18.10. Gretl crashes at some point when trying to access some element of a nested bundle as you will see. string wd = "/home/at/git/json_gretl" # adjust path string jfile = "@wd/ex3.json" string

Re: [Gretl-devel] string-valued series

2019-02-26 Thread Artur T .
Hi, Am 26.02.19 um 18:45 schrieb Riccardo (Jack) Lucchetti: > > I'm working with a panel dataset that includes a few string-valued > series, and I'm finding a few things annoying, so I'm sending this > message to the list with a two-fold purpose: (a) to hear you guys' > opinions and see of

Re: [Gretl-devel] system date and clock accessor

2019-02-08 Thread Artur T .
Am 07.02.19 um 14:40 schrieb Allin Cottrell: > I guess it would be good to know what > use people are likely to make of this facility. Hi Allin and Jack, thank you for the effort on this topic. The application I had in mind is a simple one: A machine starts a daily cron-job, and needs to

Re: [Gretl-devel] Issue reading in date variable

2019-02-05 Thread Artur T .
Am 04.02.19 um 20:55 schrieb Allin Cottrell: > On Mon, 4 Feb 2019, Artur T. wrote: > >> Am 04.02.19 um 13:24 schrieb Sven Schreiber: >>> Am 04.02.2019 um 12:55 schrieb Artur T.: >>>> Dear all, >>>> >>>> I've got two example dataset where t

Re: [Gretl-devel] Issue reading in date variable

2019-02-04 Thread Artur T .
Am 04.02.19 um 13:24 schrieb Sven Schreiber: > Am 04.02.2019 um 12:55 schrieb Artur T.: >> Dear all, >> >> I've got two example dataset where time-units are decoded as -MM-DD. >> >> I am just puzzled that in case the time-variables is named "z&quo

[Gretl-devel] Issue reading in date variable

2019-02-04 Thread Artur T .
Dear all, I've got two example dataset where time-units are decoded as -MM-DD. I am just puzzled that in case the time-variables is named "z" everything works fine (see data1.csv). However, once the column name is "DATE" (see data2.csv), I obtain the following error as variable "DATE" is

Re: [Gretl-devel] system date and clock accessor

2019-02-02 Thread Artur T .
Am 02.02.19 um 16:47 schrieb Sven Schreiber: > Am 02.02.2019 um 15:31 schrieb Allin Cottrell: > > >> and this should work on OS X too. On Windows I think that >> >>    string s = grab("date /t") >> >> ought to work but I haven't tested it. I see that grab() never got >> documented, but it

[Gretl-devel] system date and clock accessor

2019-02-02 Thread Artur T .
Dear all, does gretl have an accessor for accessing the system's calendar date and time? I couldn't find anything on this. I am sure one could use some shell command within unix/linux but I would have no idea how to grab such information on a windows of mac os machine. Best, Artur

Re: [Gretl-devel] new "provider" dependence among packages

2019-01-26 Thread Artur T .
Am 26.01.19 um 03:34 schrieb Allin Cottrell: > On Fri, 25 Jan 2019, Sven Schreiber wrote: > >> I see in the GUI (2019a) and in the DTD for the package file format >> that the new deep dependence idea between packages has arrived. My >> question: For packaging the gfn on the CLI with a spec

Re: [Gretl-devel] 2019a release?

2019-01-25 Thread Artur T .
Am 25.01.19 um 16:33 schrieb Johannes Lips: > On 22/01/2019 16:25, Allin Cottrell wrote: >> So far as I'm concerned, we're about ready to release. Anyone wish to >> hold for some reason? > Hi all, > > did anything change regarding the dependencies because of the libsvm > inclusion? The build

Re: [Gretl-devel] BUG: Out-of-memory for matrices

2019-01-11 Thread Artur T .
Am 11.01.19 um 09:49 schrieb Sven Schreiber: > Am 11.01.2019 um 08:51 schrieb Artur T.: > >> M[j] = M[j]    # update j-th matrix in ret    # results in > > Artur, I don't think that this is what you mean, because this is not > updating, but just redundant. Per

[Gretl-devel] BUG: Out-of-memory for matrices

2019-01-11 Thread Artur T .
Dear all, I've expected the following error using latest git on Ubuntu linux when trying to update a matrix in a matrices object by referencing to itself (updating itself). This works fine with a matrix object but not with a matrix within a matrices object. matrix m = mnormal(10,2) matrices

Re: [Gretl-devel] [Gretl-users] Problem with Add Random Variable menu command

2019-01-10 Thread Artur T .
I've been working on our SVM support and the sooner we > release the sooner that support will be enabled in third-party builds > of gretl for Linux. (Up till now SVM has been optional, and dependent on > installed libsvm; now I've put a modified version of the libsvm code > into git so it's

Re: [Gretl-devel] arima: can not catch how it works now

2018-11-14 Thread Artur T .
Am 13.11.18 um 08:03 schrieb Sven Schreiber: > Am 13.11.2018 um 00:22 schrieb oleg_komashko(a)ukr.net: >> >> >we can live with what we have now, especially considering that ARIMA >> >modelling is something that I se used less and less often by >> >practitioners. > I agree (with the antecedent

Re: [Gretl-devel] Building gretl on WSL (Windows subsystem for Linux)

2018-11-11 Thread Artur T .
Am 09.11.18 um 12:15 schrieb Sven Schreiber: > Hi, > > I've read about the support that Windows 10 (64bit only I think) offers > to run Linux non-graphical programs. Today I tested successfully that it > is possible to build the Linux version of gretl from source on Windows > 10 like this: >

Re: [Gretl-devel] bread() issue with empty list

2018-10-26 Thread Artur T .
> Thanks, Artur. That's now fixed in git. Thank you, Allin. It works fine now. Artur

[Gretl-devel] bread() issue with empty list

2018-10-25 Thread Artur T .
Dear all, I am currently using Gretl 2018d-git (2018-10-11) on Win10 (actually the same happens on Linux). Trying to read a bundle where some list is empty results in an error: clear open denmark.gdt -q bundle b = null list L = LRM b.L = L list X = null # putting "LRY" into the list would

  1   2   3   >