Gretl project on the launchpad
by Ivan Sopov
Hello, gretl developers.
I'm trying to start a translation of help files into russian on
launchpad.net as it seems to be the most suitable tool to participate
for all familiars with econometrics but not with gettext, linux. cvs,
etc.
The problem is that there is already a project for gretl on launchpad
and it is strongly prohibited to start more than one project for a
single program. I cannot contact with Constantine Tsardounis for about
a month, so I think it is time to re-assign that project to someone
else. On the irc-channel of launchpad I was told that
Our admins can re-assign the project to new owners but we'd prefer to
hear from the upstream owners. can you get one of them to submit a
question here:
https://answers.edge.launchpad.net/launchpad
But if nobody from main developers wants to register and do something
at launchpad it is possible to assign this function to me and in that
case a letter in this list will probably be enough.
I have prepared a .po-file for genr_funcs.xml and gretl_commands.xml
with the help of po4a utility and got 1511 strings for translation
(strings a rather big).
Good luck, Ivan Sopov.
P.S. My previous letter about using launchpad for translation is
http://lists.wfu.edu/pipermail/gretl-devel/2009-November/002171.html
12 years, 1 month
identifier name length
by Sven Schreiber
Hi,
a neverending story, sorry for continuing it: I thought the 15-character
limit on identifier names only applies to series for display reasons.
Now I got an error about a matrix identifier being too long. (September
cvs build.)
Maybe that has to do with displaying matrices as icons?
Anyway, I really need my explicit ("talking") and long identifiers...
thanks,
sven
12 years, 1 month
treatment of non-existing string variables
by Sven Schreiber
Hi,
I'm wondering whether trying to use string substitution with an
undefined string variable shouldn't throw an error. Example:
gretl version 1.9.9cvs
Current session: 2012-09-28 11:20
? if !isnull(check)
? delete check
? endif
? print "This prints @check"
This prints @check
I would argue that the unescaped @-sign is a clear indication that the
script author wanted to refer to the variable 'check'. Since that
doesn't exist, gretl should complain.
thanks,
sven
12 years, 1 month
Development
by Oezay.Canpolat@gmx.de
Dear Sirs and Madams,
I am a user of "gretl" programme and would on some clues.
The program is really absolutely awesome. You can really everything
well statistically evaluate and present.
I noticed immediately that Gretl offers the elemetarste function
not can calculate, the addition of monitoring within the variables. So say
the "sum" is missing.
I would very pleased if your developers would include this function
in the next version.
With kind regards Özay Canpolat
E-Mail: Oezay.Canpolat(a)gmx.de
--
Özay Canpolat
12 years, 2 months
Graph editing font size glitch
by Sven Schreiber
I'm sorry, this is a cvs build from March 2012, I cannot test right now
whether it has already been fixed in the meantime. This is on Ubuntu.
* When saving (a graph) to pdf, the setting for the font isn't
remembered from the earlier user settings (during the same session, i.e.
gretl hasn't been closed or a new dataset loaded).
thanks,
sven
12 years, 2 months
Survey Reweighting
by Graham Stark
Hi,
I've been using Gretl with my students at the Open University in the
UK for three years not and they and I really like using it, so thank you
all.
I was thinking of something I could give back.
Would you be interested in an implementation of the Survey reweighting
algorithms described in (e.g):
Creedy 2003
http://www.treasury.govt.nz/publications/research-policy/wp/2003/03-17/tw...
and
Calibration Estimators in Survey Sampling
Jean-Claude Deville and Carl-Erik Sarndal
Journal of the American Statistical Association , Vol. 87, No. 418
(Jun., 1992), pp. 376-382
These generate a set of sample weights for a sample survey that
guarantee that the grossed up survey hits certain targets (numbers of
males and females, numbers in different types of employment, etc.)
subject to the weights being as close as possible (in some sense) to
some initial set of weights.
As some of you may know, these techniques go back a long way under
various names; in my world they are often simply referred to as 'Calmar'
after the SAS program: http://www.restore.ac.uk/PEAS/saspackage.php)
I have an implementation of this written in Ada (I'm Old Skool); it's
not derived from the SAS version and (I think) uses different
algorithms, taken from the Deville paper. I've been looking at the Gretl
code and I think I can see roughly how to port it.
I'm only slowly getting to grips with the Gretl code, so would need a
certain amount of hand-holding, I'd expect, especially on the
user-interface.
Is that something that would interest you? I realise it's not strictly
econometrics, but this is something widely used in Microsimulation
modelling.
thanks,
Graham
--
Graham Stark, Virtual Worlds Research
http://www.virtual-worlds-research.com
136 Hainault Avenue, Milton Keynes, MK14 5PG, UK
t: (+044) 01908 618239 skype: graham_k_stark m:(+044) 075283 45116
12 years, 2 months
conference dates 2013
by Sven Schreiber
Dear organizers of the 3rd gretl conference,
it occurred to me today that it would be useful to know the dates of the
next gretl conference in 2013, because it's getting closer and other
commitments are already appearing.
So does anybody know anything yet?
Thanks,
Sven
12 years, 2 months
Using libgretl from C++
by Hélio Guilherme
Hi,
I am exploring the use of Wt library to have a Web interface to gretl
API (libgretl). This must be done in C++, and there are some
difficulties in using libgretl.
I have done the recommendation in this post
(http://lists.wfu.edu/pipermail/gretl-users/2010-June/005026.html), to
add a compiler directive to libgretl.h. There was also the need to
change the name of a argument in a function declaration because it is
a reserved word in C++ (template).
These are the changes that need to be done in:
include/gretl/libgretl.h
+20,22
#ifdef __cplusplus
extern "C" {
#endif
+397,399
#ifdef __cplusplus
} /* closing brace for extern "C" */
#endif
and in
include/gretl/gretl_path.h
changed at line 94 (inserted _ at *template)
FILE *gretl_mktemp (char *_template, const char *mode);
With this changes (that I hope that professor Allin commit them to
CVS), I successfully compiled and ran the example program (z.cpp):
#include <cstdio>
#include <iostream>
extern "C"
{
#include <gretl/libgretl.h>
}
using namespace std;
int main (int argc, char **argv)
{
cout << "Using libgretl from a C++ program:" << endl;
char *fname;
DATASET *dset;
PRN *prn;
int err;
if (argc >= 2) {
fname = argv[1];
} else {
exit(EXIT_FAILURE);
}
libgretl_init();
prn = gretl_print_new(GRETL_PRINT_STDOUT, NULL);
dset = datainfo_new();
err = gretl_read_native_data(fname, dset);
if (err) {
pprintf(prn, "Got error %d reading data from %s\n", err, fname);
errmsg(err, prn);
} else {
pprintf(prn, "Read data from %s OK\n", fname);
print_smpl(dset, 0, prn);
varlist(dset, prn);
}
destroy_dataset(dset);
gretl_print_destroy(prn);
libgretl_cleanup();
return 0;
}
Program was compiled with:
g++ -o z -Wall -I ./include/ -L ./lib/ z.cpp -lgretl-1.0 -lstdc++
Program takes a data file as argument, for example:
./z gretl/share/data/data10-1.gdt
Ouput is:
Using libgretl from a C++ program:
Read data from gretl/share/data/data10-1.gdt OK
Full data range: 1964:1 - 1991:2 (n = 110)
Listing 5 variables:
0) const 1) period 2) r 3) M 4) D
This info could be added to gretl API documentation, as an example to
use from C++.
Best Regards,
Hélio
12 years, 2 months