Thank you,
everything is working great.
Mihai
On Sun, Jan 17, 2016 at 7:00 PM, <gretl-users-request(a)lists.wfu.edu> wrote:
Send Gretl-users mailing list submissions to
gretl-users(a)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(a)lists.wfu.edu
You can reach the person managing the list at
gretl-users-owner(a)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. generating a series from the ID numbers? (cociuba mihai)
2. Re: generating a series from the ID numbers? (Allin Cottrell)
----------------------------------------------------------------------
Message: 1
Date: Sun, 17 Jan 2016 13:31:21 +0200
From: cociuba mihai <cociuba(a)gmail.com>
To: gretl-users(a)lists.wfu.edu
Subject: [Gretl-users] generating a series from the ID numbers?
Message-ID:
<
CADSiGnWQPRNzpN+53UpKxmvDfAGgqi3UkRwgeCjKEUU6wtJRpg(a)mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
The help for "series" says " In the context of a genr formula, existing
variables must be referenced by name, not ID number." but using the id of a
series is possible with other commands like "print". Is there any
possibilities to generate a series from the ID's?
<hansl>
open andy.gdt
print 1
# the help for "series" says " In the context of a genr formula, existing
variables must be referenced by name, not ID number."
# but using the id of a series is possible with other commands
series test= sales - price
# so isn't it possible to have something like
# series test2 = id[1]-id[2]
print test
print 4
<hansl>
Best regards,
Mihai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.wfu.edu/pipermail/gretl-users/attachments/20160117/93bd9b47/...
>
------------------------------
Message: 2
Date: Sun, 17 Jan 2016 09:38:41 -0500 (EST)
From: Allin Cottrell <cottrell(a)wfu.edu>
To: Gretl list <gretl-users(a)lists.wfu.edu>
Subject: Re: [Gretl-users] generating a series from the ID numbers?
Message-ID: <alpine.LFD.2.20.3.1601170930150.2387(a)myrtle.attlocal.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed
On Sun, 17 Jan 2016, cociuba mihai wrote:
> The help for "series" says " In the context of a genr formula,
existing
> variables must be referenced by name, not ID number." but using the id
of a
> series is possible with other commands like "print". Is there any
> possibilities to generate a series from the ID's?
Not directly, but see below.
> <hansl>
> open andy.gdt
> print 1
> # the help for "series" says " In the context of a genr formula,
existing
> variables must be referenced by name, not ID number."
> # but using the id of a series is possible with other commands
> series test= sales - price
>
> # so isn't it possible to have something like
> # series test2 = id[1]-id[2]
[...]
> <hansl>
There's a varname() function but that won't do what you want:
series test2 = varname(1) - varname(2)
will fail since the value yielded by "varname(1)" is a string, not a
series. The way to do it is by using a list:
<hansl>
open data4-1.gdt
series test = price - sqft
list ID = dataset
series test2 = ID[1] - ID[2]
print test test2 -o
</hansl>
Allin Cottrell
------------------------------
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
End of Gretl-users Digest, Vol 108, Issue 20
********************************************