Sven, you are right. Thank you.

 

Daniel

______________________________________________________________
> Od: <gretl-users-request@lists.wfu.edu>
> Komu: <gretl-users@lists.wfu.edu>
> Datum: 05.01.2015 18:03
> Předmět: Gretl-users Digest, Vol 96, Issue 4
>

Send Gretl-users mailing list submissions to
gretl-users@lists.wfu.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.wfu.edu/mailman/listinfo/gretl-users
or, via email, send a message with subject or body 'help' to
gretl-users-request@lists.wfu.edu

You can reach the person managing the list at
gretl-users-owner@lists.wfu.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gretl-users digest..."


Today's Topics:

  1. Re: Getting a list of variables via an array of their names
     (Daniel Bencik)
  2. Re: Getting a list of variables via an array of their names
     (Sven Schreiber)


----------------------------------------------------------------------

Message: 1
Date: Sun, 04 Jan 2015 18:38:48 +0100
From: Daniel Bencik <eubie@centrum.cz>
Subject: Re: [Gretl-users] Getting a list of variables via an array of
their names
To: "gretl-users" <gretl-users@lists.wfu.edu>
Message-ID: <20150104183848.9B5E135E@centrum.cz>
Content-Type: text/plain; charset="utf-8"

Sven,?
?
thanks a lot. The ternary operator - beautiful.?
?
To the questions ... I do have four dataset (variance, volatility, logVariance, logVolatility) each with approx 100 series, so I do not want to merge them into one dataset. The idea is to have four sessions, into each session I load the specific dataset and then run a script that estimates a lot of models on the current dataset and produces models/fitted values into the current session. Like this, I get to have all the variables/models/fits/etc in each separate session. For this purpose, I want to have one script instead of four, that is the gist of the idea.?
?
The simplest piece of code that reproduces the error I get is the following snippet:
?
open anscombe.gdt
?
strings xNames = array(2)
? ? ? ? xNames[1] = "x"
? ? ? ? xNames[2] = "y1"
? ? ? ??
list xVariables = @xNames[1] @xNames[2]
?
Thank you!
Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20150104/15d0f693/attachment-0001.html

------------------------------

Message: 2
Date: Sun, 04 Jan 2015 18:49:39 +0100
From: Sven Schreiber <svetosch@gmx.net>
Subject: Re: [Gretl-users] Getting a list of variables via an array of
their names
To: gretl-users@lists.wfu.edu
Message-ID: <54A97D33.2020001@gmx.net>
Content-Type: text/plain; charset=windows-1252

Am 04.01.2015 um 18:38 schrieb Daniel Bencik:

>  
>
> The simplest piece of code that reproduces the error I get is the
> following snippet:
>
>  
>
> /open anscombe.gdt/
>
>  
>
> /strings xNames = array(2)/
>
> /        xNames[1] = "x"/
>
> /        xNames[2] = "y1"/
>
>        
>
> /list xVariables = @xNames[1] @xNames[2]/
>
>

Allin explained this already in an answer to you a couple of days ago.

-s



------------------------------

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users

End of Gretl-users Digest, Vol 96, Issue 4
******************************************