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, 2 months
Suggestion for Makefile.in and news about my compiling problem
by Hélio Guilherme
Hi Allin, Jack and other developers :)
I have been unable to get CVS gretl running on my Linux for some time now,
but recently I have made some progress.
I solved the problem of gretl looking for the old library by deleting .gretl
directory.
Now I have gretl_x11 running, working well all menu entries except when I
need to open a file. The program crashes (with Bugzilla window appearing)
after loading the file (yes, I can see the variables list and info at shell
window). I am sorry to say but I have not tried to open a file in gretlcli.
I have messed around by having set main directory other than
/usr/local/share/gretl (got report of bad directory). Also solved by
deleting .gretl directory.
I solved the problem of gretl looking for the old library by deleting .gretl
directory.
Well, there are some unwarned problems in the compilation process, because
to have gretl_x11 compiled I must cd to gui2 and do a make there. The
configure script reports all OK.
I still have to make buildstamp manually to proceed with compilation. This
happens because of plugins requiring build.h. So, my suggestion is to add
builstamp before lib at the plugins entry:
plugin: buildstamp lib
This solved my problem (but since it calls a perl script would it be harmful
for Windows/OS X?).
Sorry for any incorrections, I am writing by memory. Thanks for your
support.
Hélio
OpenSUSE 11.3 x86_64
13 years, 3 months
panel statistics functions
by Allin Cottrell
The panel stats functions pmean() and psd() have just been upgraded
in CVS; the old versions suffered from numerical inaccuracy.
The old versions were probably OK for most uses, but they did not
reliably fulfill the promise given in the help text for psd(),
namely that one could check whether or not a given series x is
time-varying by doing
TV = max(psd(x)) > 0
Two things were not right. First, suppose a given series is in fact
time-invariant, and the panel has T = 7. To get the mean for each
group we'd add up the seven values and divide by 7. Problem: in
finite-precision digital arithmetic there's no guarantee that this
will give back exactly the common value. So now we run an initial
check, and if there's no time-variation we don't actually calculate
the mean, we just record the common value as the mean.
Second, to save compute time we were using the so-called
"computational formula" for the standard deviation (which requires
only one pass through the data). I thought this might be good enough
in context, but really it's not. So now (if there's time variation)
we calculate the standard deviation "properly", with one pass to get
the mean and a second to cumulate the squared deviations from the
mean. If the initial check shows no time variation we just record
true zero for the s.d.
Allin
13 years, 3 months
small hansl fixes
by Allin Cottrell
Hello all,
A couple of little things recently done in CVS that may be
handy for script writers.
1) You can now give an "anonymous" list as an argument to a
user-defined function, as in
retval = foo(logs(X))
for X a named list, or
retval = foo($xlist)
where $xlist gets the list of regressors from the last model.
Up till now only named lists were accepted as function
arguments (and you'd get a misleading error message if you
tried giving an anonymous list).
2) You can now "dot-assign" a scalar value to a pre-existing
matrix, as in
matrix m = ones(3,2)
m .= 0
The second line sets all elements of m to zero, preserving the
original dimensions of m. Up till now there was no direct way
to do this. You could say
m = 0
but that would give you a 1x1 zero matrix.
Allin
13 years, 3 months
Bug in NLS?
by Marcin Błażejowski
Hi,
simple script:
<hansl>
open greene11_3.gdt
# OLS block
ols C 0 Y
fcast ols1
fcast ols2
fcast ols3
# NLS block
genr a = 1.0
genr b = 1.0
nls C = a + b * Y
params a b
end nls
fcast nls1
fcast nls2
fcast nls3
</hansl>
All 3 forecast generated by OLS (olsX) are the same while forecast
generated by NLS (nlsX) are different. Moreover, olsX = nls1 (always, no
matter the number of forecast is).
Regards,
Marcin
--
Marcin Błażejowski
http://www.wrzosy.nsb.pl/~marcin/
GG# 203127
13 years, 3 months
Gretl API sample - How to....
by simon rupar
Hi everybody
I'm trying to make some C# sample to connect to Libgretl. The sample seems
to work ok, until I call gretl_read_native_data (oh, by the way I am using
sample tat is on http://gretl.sourceforge.net/API/gretl-Data-I-O.html). I
always get int 12, which by Gretl error refrence means I put the wrong
filename. Here is sample code:
gretl.DATAINFO pddata =
(gretl.DATAINFO)Marshal.PtrToStructure(p, typeof(gretl.DATAINFO));
string fname = @"D:\izhod.gdt";
StringBuilder test = new StringBuilder(fname);
double Z = 0;
int err = gretl.gretl_read_native_data(test, ref Z, ref
pddata);
I tried to found out the source of problems, so I decided to go copy-paste
of sample on gretl site. I downloaded gretl source code, downloaded Pelles -
IDE for C and tried to run the program. First I get problems with refrence
zlib.h, but soon as I downloaded from web, the problem was gone. But I'm
getting problems with winnt.h(558): fatal error #1014: #error: "No target
architecture".
Does anybody had/have same problems, or anybody got a clue what did I wrong?
Any tip would be great.
Simon
13 years, 3 months
A suggestion
by Talha Yalta
I am not sure how often people generally use the "notes" interface
accessible from the icon view but I have a feeling that it is not very
often. As a result, I suggest that, upon loading a session, gretl
automatically opens the notes window if there is anything in it. This
way one can include important information or directions which will be
immediately visible to users (for example students) when distributing
such files.
Cheers
Talha
--
“An expert is a person who has made all the mistakes that can be made
in a very narrow field.” - Niels Bohr (1885-1962)
--
13 years, 3 months