It wouldn't, because {Dataset} would be a bunch of series, which aren't defined
until the dataset is loaded.
But thanks to Jack I think I've got to a solution. I can do:
~~ User imput ~~
set workdir
include messylogic.inp that loads the model
~~ User imput ~~
list list1 = bla bla bla
list list2 = bla bla bla
logit list1 list2
include messylogic2.inp
This way the user avoids all the scrolling and I can hide all my spagetti code. I see no
other solution.
Thanks for your time!
________________________________
De: Alecos Papadopoulos <papadopalex(a)aueb.gr>
Enviado: lunes, 22 de marzo de 2021 21:31
Para: gretl-users(a)gretlml.univpm.it <gretl-users(a)gretlml.univpm.it>
Asunto: [Gretl-users] Re: Defining a list of series before series are loaded, is it
possible?
Wouldn't this work?
matrix A = {dataset}
list Datalist ={A}
Alecos Papadopoulos PhD
Athens University of Economics and Business
web:
alecospapadopoulos.wordpress.com/
scholar:https://g.co/kgs/BqH2YU
On 22/3/2021 23:22, Iago Varela wrote:
If I do:
list lista = Exited Age Tenure
I get: No dataset is in place in the console
Let's say I ignore it and do afterwards:
open mymodel.gdt --preserve
print lista
Then I get: The symbol 'lista' is undefined
This is the script I'm working on
https://pastebin.com/WrawUiLF
[
https://pastebin.com/i/facebook.png]<https://pastebin.com/WrawUiLF>
#--------------------------------------------------------------------## -
Pastebin.com<https://pastebin.com/WrawUiLF>
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can
store text online for a set period of time.
pastebin.com
________________________________
De: Sven Schreiber <svetosch@gmx.net><mailto:svetosch@gmx.net>
Enviado: lunes, 22 de marzo de 2021 21:09
Para: gretl-users@gretlml.univpm.it<mailto:gretl-users@gretlml.univpm.it>
<gretl-users@gretlml.univpm.it><mailto:gretl-users@gretlml.univpm.it>
Asunto: [Gretl-users] Re: Defining a list of series before series are loaded, is it
possible?
Am 22.03.2021 um 21:47 schrieb Iago Varela:
Hi all, I'm Yago again.
So I'm struggling with a new thing.
The script I'm writing asks the user to imput at the very top what
variables will be used as dependent and regressors for a logit model. I
wanted to put it at the top so any user imput is close and neat, and
there's no skim through code necessary.
The problem is that I can't make a list before I have a dataset, I can't
make a list for series that are not defined before such list.
Hi, I don't understand what the problem is. You can write anything like:
list reg = x y z
in a script even with no dataset loaded, and no series "x", "y",
"z"
present. Of course it won't _work_ before you load the data, but that's
expected and cannot be avoided.
So surely you're trying to achieve something different? Maybe a more
concrete code example would help us understand.
cheers
sven
_______________________________________________
Gretl-users mailing list --
gretl-users@gretlml.univpm.it<mailto:gretl-users@gretlml.univpm.it>
To unsubscribe send an email to
gretl-users-leave@gretlml.univpm.it<mailto:gretl-users-leave@gretlml.univpm.it>
Website:
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/
_______________________________________________
Gretl-users mailing list --
gretl-users@gretlml.univpm.it<mailto:gretl-users@gretlml.univpm.it>
To unsubscribe send an email to
gretl-users-leave@gretlml.univpm.it<mailto:gretl-users-leave@gretlml.univpm.it>
Website:
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/