Allin
thanks for the lead ..

Here's what resulted.....

gretl console: type 'help' for a list of commands
? include StrucBreak.gfn
 C:\Users\Brian\AppData\Roaming\gretl\functions\StrucBreak\StrucBreak.gfn
? pkg query StrucBreak
File: C:\Users\Brian\AppData\Roaming\gretl\functions\StrucBreak\StrucBreak.gfn
Package: StrucBreak 0.91 (2021-07-20)
Author: Riccardo "Jack" Lucchetti and Sven Schreiber
Email: svetosch@gmx.net
Required gretl version: 2018b (20181)
Data requirement: Time-series data
Description: Autodetection of structural breaks in linear models, Bai-Perron style

Clearly I'm on the latest Gretl version, not 2018b((20181). But appear to be on the latest StrucBreak Package.
Brian


On Tue, 2 Apr 2024 at 00:17, Cottrell, Allin <cottrell@wfu.edu> wrote:
* Brian wrote:

I am attempting a simple task of identifying structural breaks in a
single time series trend. There is a single dep var t=1994-2021, two
variables in X viz. constant and time. The following error message
comes up:

The variable X is read-only
 *** error in function SB_GUI, line 7
list X = !nelem(X) ? null : X

* Sven responded:

Brian, it looks like you're talking about or contributed package
StrucBreak, and furthermore it seems to me you might be using an
outdated version of it. Indeed, our changelog for the current version
0.91 contains the entry: "fix show-stopping problem in the GUI with
the X list".

What's your installed version of the package?

* And Brian replied:

Hi Sven, Version 2023c of Gretl. and StrucBreak 09.1

* Allin now says:

I just download the current StrucBreak 0.91 (dated 2021-07-20) and its
code contains no occurrence of the statement shown in the error Brian
reported, namely

  list X = !nelem(X) ? null : X

Brian, are you sure that's the version you're using? To verify, open
the gretl console and type

  include StrucBreak.gfn

You should see

  StrucBreak 0.91, 2021-07-20 (Riccardo "Jack" Lucchetti and Sven Schreiber)

Or alternatively, type

  pkg query StrucBreak

in which case you should see several lines of output, among which

  Package: StrucBreak 0.91 (2021-07-20)

Allin Cottrell
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave@gretlml.univpm.it
Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/