gretl 1.7.6rc1
by Allin Cottrell
Current gretl CVS and the Windows snapshot at
http://ricardo.ecn.wfu.edu/pub/gretl/gretl_install.exe
contain release candidate 1 for gretl 1.7.6.
Please note that this version involves a backward-incompatible
change with respect to gretl 1.7.5 and earlier, affecting
user-defined functions that (a) take a named list of variables as
an argument and (b) do things with the list-member variables by
means of a "foreach" loop on the list.
I won't go into the rationale for this change here. Anyone who
wants the details may look at the proceedings on the gretl-devel
list for July, which were mostly taken up with this issue:
http://lists.wfu.edu/pipermail/gretl-devel/2008-July/thread.html
There's also a brief discussion in the chapter of the User's Guide
that deals with user-defined functions. But here's the bottom
line for users:
* If you want to "get hold of" a list-member variable in the
context noted above, you have to use the syntax listname.varname,
where listname is the name of the list in question and varname is
the name of the list member. (This is required only if you're
working with a list that was supplied as a function argument.)
Trivial example: inside a function, creating new variables which
are the cubes of the members of an original list, xlist, where
xlist is an argument to the function.
Old style:
loop foreach i xlist
$i_3 = $i^3
endloop
New style:
loop foreach i xlist
$i_3 = (xlist.$i)^3
endloop
In the new scheme, "$i" gets the name of the list-member variable
alright, but the variable is not "visible" under that name within
the function. So on the right-hand side of the expression that
creates the cubes, we need "(xlist.$i)^3". (Well, actually the
parentheses are not required, but wearing your seatbelt is in
general a good idea.)
Although this may affect quite a large number of existing
functions, we believe the effects are localized and the update
should be trivial. If anyone has a function for which the update
is _not_ trivial, please let us know.
Allin Cottrell.
14 years, 1 month
inconsistency in PCA function
by Rebecca Zhang
Hi,
I got inconsistent results when running PCA using covariance matrix in gretl. Please see attached TSY_curve file for the data used. Please see attached PCA_problem file that illustrated the problem when verified with R.
The result highlighted in yellow is different from R result and appears in consistent with a reduced components result. I appreciate if you can look into it. Thank you.
Regards,
Rebecca
14 years, 6 months
GRETL string concatenation for use in SQL statement
by Mike Pfeiff
I am very new to GRETL so all help is greatly appreciated.
Previously I have asked about making an ODBC connection to MS Access to
bring in my own data. With the help of users in this community I have
been successful in that end ever.
Below is the code that I used:
nulldata 250
setobs 12 1990:1
open dsn=FCST_INPUTS --odbc
string sqlstr="SELECT Emplopy FROM Data_Table_to_GRETL WHERE
census_division="East North Central"
data Employ @sqlstr --odbc
setinfo MWh -n "in MWh"
Now I have a simple string concatenation question to be used in a SQL
statement.
I need to bring in two (2) data series from the same MS Access table
named Data_Table_to_GRETL. The two series are: (1) Employ; and (2) Pop
Both of data series need to be from the same census_division (in the
Acess database I have data by year month for each of the 9 US census
divisions). In this example the census division is "East North
Central".
I though that I could define a string named census_divicsion early in
the code and then concatenate the sqlstr for each "ODBC read" as
follows:
string census_division="East North Central"
nulldata 250
setobs 12 1990:1
# bring in Employment data
open dsn=FCST_INPUTS --odbc
string sqlstr="SELECT Employ FROM Data_Table_to_GRETL WHERE
census_division=" ~ census_division
data Employ @sqlstr --odbc
# bring in Population data
open dsn=FCST_INPUTS -odbc
string sqlstr2="SELECT Pop FROM Data_Table_to_GRETL WHERE
census_division="~ census_division
data Pop sqlstr2 --odbc
However, for some reason even thought the string appears to be correct,
it errors out:
Error executing script: halting
>data Employ @sqlstr -odbc
Any assistance providing the correct logic for concatenating the sqlstr
that would make it able to be read in SQL would be greatly appreciated.
Sincerely,
Mike
15 years, 3 months
Applying an ARIMA Model
by Oliver Heering
Hi,
coming from data mining and machine learning i have the following
question which may or may not sound stupid for you, but as i have no
clue and there are no stupid questions (just stupid answers) i take my
chance posting the question to this list:
I already figured out how to fit an ARIMA process to my data (ok, how
to actually find GOOD AR/MA/difference orders would be another
question). And i can save the resulting model as Icon to my session.
Does that mean i can also apply my model to any other data (of the
same type of course)? Let's say i fit my model against a timeseries
range A. How can i find out how my model fits to another timeseries
range B?
Maybe this isn't possible at all and i am misunderstanding the whole
concept of ARIMA models and -forecasting. I am primary working with
the data mining tool "RapidMiner", which allows you to easily apply
any learned model to new and unseen data (classification mainly, but
regression as well) and i wonder if it is the same with an estimated
ARIMA model.
Thanks (again) for any answer. :-)
By the way, i appreciate that case markers can now be up to 15 chars
in length, but what are they actually used for? Of course i'd like to
have them show up on my plots, which i currently do by manually
tweaking the gnuplot commands, but i think this functionality is still
missing in gretl, am i correct? So what's left? Is there any practical
use-case for case markers in timeseries analysis?
--
Oliver
15 years, 3 months
any use for gretlcli.exe?
by Allin Cottrell
One question occurs to me, as I push out the 1.8.4 release:
I wonder if anyone ever uses gretlcli.exe on Windows? I've
included it for completeness but maybe it's not earning its keep?
Don't worry, I won't get rid of gretlcli.exe without discussion.
But my feeling is that gretlcli on Linux is useful (to some of us
anyway) because Linux comes supplied with a highly functional
shell, wrapped in highly functional GUI terminal emulators such as
xterm and its derivatives. On the other hand the default shell on
Windows (cmd.exe) is primitive and horrible, as is the default
terminal emulator that it runs in.
You'd have to be a masochist to run gretlcli.exe under cmd.exe --
or would you? There's my question!
(I know you can do better running gretlcli.exe with a decent shell
under MSYS in a rxvt window on Windows -- but how many people do
that?)
Allin.
15 years, 3 months
gretl 1.8.4 released
by Allin Cottrell
Sorry if you get this twice, but...
See http://gretl.sourceforge.net/
Apologies for the short life of gretl 1.8.3, but this release
fixes some serious problems in relation to user-contributed
function packages.
8/28/09 version 1.8.4
- Fix breakage in GUI interface for calling user-defined
functions, plus fixes for GUI function package editor
- Patches from Mandriva: build OK with -Wformat-security,
and respect LDFLAGS as supplied by user
- Add "to" to the list of reserved words
- Enable testing of nonlinear restrictions on simultaneous
equation systems
- Update docs and examples for the "new style" definition
of functions
- Small modification to GUI series editor
- Try to make path-searching a little smarter for files
referenced in scripts
- GUI language switcher: add a workaround for platforms
missing proper locale aliases
- Stata dta importer: try to work around missing character
encoding information
- ODS import: fix bug 2841292
- win32: update GTK+ stack to 2.16.5
--
Allin Cottrell
Department of Economics
Wake Forest University
15 years, 3 months
English help
by Henrique
Dear native English speakers,
How do you say the word "gretl"? I know this is an off topic
question, but I really would like to know it. :)
Best,
Henrique
15 years, 3 months
Re: [Gretl-users] Gretl-users Digest, Vol 31, Issue 23
by Lars Pålsson-Syll
Hi
I wonder if it is poosible with gretl somehow to make a simulation of throwing two dices
(when using uniform I only get CONTINUOUS values between 1 and 6).
Best regards,
Lars
Lars Palsson Syll
Professor of Civics
Malmo University
Sweden
>>> <gretl-users-request(a)lists.wfu.edu> 09-08-27 18:05 >>>
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. Gnuplot Book: Finally (finally!) in print! (Philipp K. Janert)
----------------------------------------------------------------------
Message: 1
Date: Thu, 27 Aug 2009 06:20:22 -0700
From: "Philipp K. Janert" <janert(a)mailaps.org>
Subject: [Gretl-users] Gnuplot Book: Finally (finally!) in print!
To: gretl-users(a)lists.wfu.edu
Message-ID: <200908270620.22503.janert(a)mailaps.org>
Content-Type: text/plain; charset="us-ascii"
After what at times seemed like an interminable
delay, the Gnuplot book is finally available in
printed form!
This means that anybody who pre-ordered the
book should by now already have their copy or
receive it within the next few days.
I wanted to thank all of you who contributed
questions and comments, or pointed out errors in
the draft version of the manuscript. It really made
a difference!
More details are available on the publisher's site:
www.manning.com/janert
and the book is available from any bookseller,
including Amazon:
http://www.amazon.com/gp/product/1933988398
I wanted to thank everyone for their patience and
also wanted to apologize again for the delay. I hope
you will find that it was worth it.
Best,
Ph.
------------------------------
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
End of Gretl-users Digest, Vol 31, Issue 23
*******************************************
15 years, 3 months
Gnuplot Book: Finally (finally!) in print!
by Philipp K. Janert
After what at times seemed like an interminable
delay, the Gnuplot book is finally available in
printed form!
This means that anybody who pre-ordered the
book should by now already have their copy or
receive it within the next few days.
I wanted to thank all of you who contributed
questions and comments, or pointed out errors in
the draft version of the manuscript. It really made
a difference!
More details are available on the publisher's site:
www.manning.com/janert
and the book is available from any bookseller,
including Amazon:
http://www.amazon.com/gp/product/1933988398
I wanted to thank everyone for their patience and
also wanted to apologize again for the delay. I hope
you will find that it was worth it.
Best,
Ph.
15 years, 3 months
GRETL connection to MS Acess database
by Mike Pfeiff
I'm very new to GRETL and I am looking for documentation on how to
connect GRETL to an MS Access database.
On the GRETL website on the data page there is some discussion of using
scripts that can be used to create databases using data available on the
internet but I can't find those scripts.
Could someone point me in the right direction?
Thanks
15 years, 3 months