Build gretl for windows
by geno
Hi, i'm trying to build gretl for Windows. I'm using Linux (ubuntu
8.10) and mingw compiler.
When i type make in win32 directory i get error messages:
=========================
make
../builddate.pl
Updating build.h
mkdir -p dlls
mkdir -p plugins
i586-mingw32msvc-dllwrap --as=i586-mingw32msvc-as --export-all
--driver-name i586-mingw32msvc-gcc -Wall -O2 -mms-bitfields -DWIN32 -s
\
--output-def libgretl.def --implib ./import-libs/libgretl.a \
-o dlls/libgretl.dll adf_kpss.o anova.o bhhh_max.o bootstrap.o
calendar.o compare.o compat.o csvdata.o dataio.o dataset.o dbread.o
dbwrite.o describe.o discrete.o estimate.o forecast.o geneval.o
genfuncs.o genlex.o genmain.o gensyntax.o gmm.o graphing.o
gretl_commands.o gretl_errors.o gretl_fft.o gretl_foreign.o
gretl_func.o gretl_intl.o gretl_list.o gretl_matrix.o gretl_model.o
gretl_panel.o gretl_paths.o gretl_prn.o gretl_restrict.o
gretl_string_table.o gretl_utils.o gretl_win32.o gretl_www.o
gretl_xml.o interact.o kalman.o libset.o matrix_extra.o missing.o
modelprint.o modelspec.o monte_carlo.o nls.o nonparam.o objstack.o
options.o plotspec.o plugins.o printout.o printscan.o pvalues.o
qr_estimate.o random.o strutils.o subsample.o system.o texprint.o
transforms.o tsls.o usermat.o var.o varprint.o vartest.o irfboot.o
chkder.o dpmpar.o enorm.o fdjac2.o lmder1.o lmder.o lmdif.o lmpar.o
qrfac.o qrsolv.o lbfgsb.o dllinit.o -lg2c -lm -L./import-libs -lxml2
-lz -lintl -lprob -lgmp \
-lmingwex -lwsock32
-Lc:/devel/target/610d23b3fdae3f3d08ee4932c288bfbc/lib -lglib-2.0
-lintl -llapack -lblas -L/lib/ -lf77blas -latlas -lg2c -lfftw3.dll
i586-mingw32msvc-dllwrap: no export definition file provided.
Creating one, but that may not be what you want
gretl_matrix.o:gretl_matrix.c:(.text+0x4ad6): undefined reference to `_dtrtri_'
gretl_matrix.o:gretl_matrix.c:(.text+0x4dde): undefined reference to `_dpotri_'
gretl_matrix.o:gretl_matrix.c:(.text+0x5660): undefined reference to `_dgelss_'
gretl_matrix.o:gretl_matrix.c:(.text+0x56ec): undefined reference to `_dgelss_'
gretl_matrix.o:gretl_matrix.c:(.text+0x5cf5): undefined reference to `_dgesvd_'
gretl_matrix.o:gretl_matrix.c:(.text+0x5d81): undefined reference to `_dgesvd_'
gretl_matrix.o:gretl_matrix.c:(.text+0x6413): undefined reference to `_dgeev_'
gretl_matrix.o:gretl_matrix.c:(.text+0x6496): undefined reference to `_dgeev_'
gretl_matrix.o:gretl_matrix.c:(.text+0x66bd): undefined reference to `_dpptrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x671f): undefined reference to `_dpptri_'
gretl_matrix.o:gretl_matrix.c:(.text+0x67ca): undefined reference to `_dpotrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x682c): undefined reference to `_dpotri_'
gretl_matrix.o:gretl_matrix.c:(.text+0x68b7): undefined reference to `_dpotrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x6a03): undefined reference to `_dsytrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x6a79): undefined reference to `_dsytrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x6b46): undefined reference to `_dsycon_'
gretl_matrix.o:gretl_matrix.c:(.text+0x6b9f): undefined reference to `_dsytri_'
gretl_matrix.o:gretl_matrix.c:(.text+0x6c96): undefined reference to `_dgetrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x6fc5): undefined reference to `_dgetrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x7018): undefined reference to `_dgetri_'
gretl_matrix.o:gretl_matrix.c:(.text+0x7076): undefined reference to `_dgetri_'
gretl_matrix.o:gretl_matrix.c:(.text+0x7180): undefined reference to `_dtrcon_'
gretl_matrix.o:gretl_matrix.c:(.text+0x7349): undefined reference to `_dgeqrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x73b2): undefined reference to `_dgeqrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x74e0): undefined reference to `_dorgqr_'
gretl_matrix.o:gretl_matrix.c:(.text+0x75e0): undefined reference to `_dpotrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0x7619): undefined reference to `_dpocon_'
gretl_matrix.o:gretl_matrix.c:(.text+0x8536): undefined reference to `_dsyrk_'
gretl_matrix.o:gretl_matrix.c:(.text+0x8bcf): undefined reference to `_dgemm_'
gretl_matrix.o:gretl_matrix.c:(.text+0x9863): undefined reference to `_dtrtri_'
gretl_matrix.o:gretl_matrix.c:(.text+0x9a31): undefined reference to `_dgelss_'
gretl_matrix.o:gretl_matrix.c:(.text+0x9aba): undefined reference to `_dgelss_'
gretl_matrix.o:gretl_matrix.c:(.text+0xa669): undefined reference to `_dpotrs_'
gretl_matrix.o:gretl_matrix.c:(.text+0xa706): undefined reference to `_dpotrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0xa774): undefined reference to `_dpotrs_'
gretl_matrix.o:gretl_matrix.c:(.text+0xa910): undefined reference to `_dpotri_'
gretl_matrix.o:gretl_matrix.c:(.text+0xa9ea): undefined reference to `_dgetrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0xaa62): undefined reference to `_dgetrs_'
gretl_matrix.o:gretl_matrix.c:(.text+0xab01): undefined reference to `_dgels_'
gretl_matrix.o:gretl_matrix.c:(.text+0xab66): undefined reference to `_dgels_'
gretl_matrix.o:gretl_matrix.c:(.text+0xb6d5): undefined reference to `_dsyev_'
gretl_matrix.o:gretl_matrix.c:(.text+0xb7b6): undefined reference to `_dsyev_'
gretl_matrix.o:gretl_matrix.c:(.text+0xbd8d): undefined reference to `_dpotrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0xbe42): undefined reference to `_dpotri_'
gretl_matrix.o:gretl_matrix.c:(.text+0xbf5c): undefined reference to `_dpotrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0xbfc8): undefined reference to `_dpotri_'
gretl_matrix.o:gretl_matrix.c:(.text+0xc199): undefined reference to `_dpotrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0xc36e): undefined reference to `_dgetrf_'
gretl_matrix.o:gretl_matrix.c:(.text+0xc421): undefined reference to `_dgecon_'
gretl_panel.o:gretl_panel.c:(.text+0x73f4): undefined reference to `_dspsv_'
qr_estimate.o:qr_estimate.c:(.text+0x1c3): undefined reference to `_dtrtri_'
collect2: ld returned 1 exit status
i586-mingw32msvc-dllwrap: i586-mingw32msvc-gcc exited with status 1
make: *** [dlls/libgretl.dll] Błąd 1
=========================
When I compile gretl for Linux everything is ok. Can you help me? I
don't know what to do with this errors.
--
--=geno=--
15 years, 7 months
sessions
by Sven Schreiber
Good evening,
I'm beginning to get cosy with gretl's session concept. However, after
using it a little bit I'm wondering: when there is a "defined" session
in course (i.e. one that was saved to a .gretl file and hasn't been
ended) the information about the session name doesn't seem to be
available. (Well maybe indirectly via File -> Session files -> first
entry in the recent session files list.) Note the contrast to the name
of the current workfile which is always displayed in the main window (of
course!).
So how about using the line where the workfile name is displayed to also
display the name of the current session (and whether it has unsaved
changes)?
cheers,
sven
15 years, 8 months
Getting ACF/PACF/XCF as a matrix
by Allin Cottrell
Marcin B. has been in touch with me about providing an accessor or
function such that you could retrieve ACF/PACF values for further
analysis, and I thought I'd bring this issue to the list.
Marcin originally requested an accessor, $corrgm, and I replied by
suggesting a function, acf(y, p) [y = series, p = max lag] which
would return a column vector. The correspondence then continued
as below. Comments welcome.
On Sun, 25 Jan 2009, Marcin B�^Bażejowski wrote:
> I was rather thinking about pacf() function (as a tool for
> determining order of autoregressive of given proces) and my
> thoughts was like thist (but it's only suggestion):
> $corrgm(m,n), where "m" is a order of function and "n" is a
> value of function (acf, pacf and so on).
In gretl's syntax, $foo is used strictly as an accessor for a
previously calculated result. So my thinking is that $corrgm
would have to retrieve the result from a previous "corrgm" command
(presumably, in the form of a vector of values).
This could work, but my alternative thought was to provide a
function acf() -- or corrgm(), the name doesn't matter much --
that works in a "stand-alone" manner to provide an acf vector.
This seemed a little more "natural" to me than using an accessor.
Now I take your point that one might also want the partial
autocorrelations, or for that matter the cross-correlogram of two
variables. We could do this by providing three functions, e.g.,
acy(y, p)
pacf(y, p)
xcf(x, y, p)
where x and y are series and p is the maximum lag. It would be
possible to combine acf and pacf into one function by using a
third boolean parameter to distinguish the cases -- or, I suppose,
we could have a corrgm() function with returns a p x 2 matrix with
the ACF in column 1 and the PACF in column 2. I'm not sure which
of these options is best.
Allin.
15 years, 8 months
Please enable file upload on the gretl wiki
by andreas.rosenblad@ltv.se
I would like to upload a screen shot to the gretl wiki, but I found that
uploading files is diabaled. Can you please enable it?
Best regards
Andreas
15 years, 8 months
exog. lags in VECM
by Sven Schreiber
Hi,
I encountered the following problem when specifying a VECM with
exogenous variables:
I wanted to specify x(-1) as a restricted exogenous variable. It turned
out to be not so easy to get the lag in there instead of just the
contemporaneous value; adding the lag of x to the dataset doesn't help,
because the lags don't show up in the VECM specification dialog. So I
had to manually create an auxiliary variable holding the lag of x.
Given that the VAR specification dialog has a great interface for
choosing the lags of exogenous variables, wouldn't it be natural to have
the same thing in the VECM window?
And while we're (or I'm) at it, couldn't this flexible approach for
choosing lags also be extended to endogenous variables?
Thanks,
sven
15 years, 8 months
Re: [Gretl-users] how to run multiple regressions at one time
by Sven Schreiber
[moving this over from users to devel]
I guess what I mean is:
in a 'loop for i=1..10' expression, the index i obviously takes on
integer values, and it is clear that you have to do some type conversion
to get strings out of that. Hence in that case $i is perfectly intuitive.
However, in a 'loop foreach i peach pear plum' expression it...
(a) either looks as if i takes on the names of the series. Then why on
earth do I need to use $i instead of just plain i? Or...
(b) the index i really must be thought as looking up the id numbers of
the involved series, and hence is a number. But if series 'peach' has
id#2, then I would expect $i to give the string representation of "2".
In that case, to get back the name of 'peach' through the loop index i
in the first iteration, I would rather have a syntax like 'name(i)', or
some other prefix like '§i' or whatever. Otherwise IMHO it clashes with
the use in the standard for loops, see above, and that's what I find
confusing.
Was that understandable know, or have I maybe got it all wrong?
thanks for the patience,
sven
On 30.01.2009 02:22, Allin Cottrell wrote:
> On Thu, 29 Jan 2009, Sven Schreiber wrote:
>>> In a "foreach" loop the '$i' construction works by lookup: it
>>> indexes into the relevant array of strings or variable names and
>>> returns entry i at iteration i.
>>>
>>> In other sorts of loops, '$i' just gives the string representation
>>> of the current index value, as if you had done
>>>
>>> sprintf foo "%d", i
>> See I guess it's exactly this double, context-dependent, meaning
>> that I find confusing. I associate $i with string
>> representation, and then I'm all baffled why that (in a foreach
>> loop context) won't give me a string with a series name, but
>> some totally different thing.
>
> Er, sorry, but what totally different thing? "A string with a
> series name" is exactly what it gives you, no?
>
> For example, in
>
> <script>
> open data4-1
> list L = 1 2 3
> loop foreach i L
> print $i
> endloop
> </script>
>
> the loop part is equivalent to typing
>
> print price
> print sqft
> print bedrms
>
> and in
>
> <script>
> open data4-1
> list L = 1 2 3
> loop foreach i L
> print "$i"
> endloop
> </script>
>
> the loop is equivalent to typing
>
> print "price"
> print "sqft"
> print "bedrms"
>
> I don't mean to be unhelpful, but I don't yet understand the
> problem. It seems totally transparent to me ;-) (who wrote it!).
>
> Allin.
> _______________________________________________
> Gretl-users mailing list
> Gretl-users(a)lists.wfu.edu
> http://lists.wfu.edu/mailman/listinfo/gretl-users
>
15 years, 8 months
asterisk signalling changed workfile
by Sven Schreiber
Hi,
I'm used to the behavior that there appears an asterisk behind the file
name in the main window when the workfile is changed and needs to be saved.
But I just applied the HP filter to a variable and saved the output into
a new variable (tick box). There is no asterisk but at the same time the
file doesn't seem to be saved automatically. Is this a bug?
thanks,
sven
15 years, 8 months
regarding the new modprint command...
by andreas.rosenblad@ltv.se
Regarding the new modprint command...
Rlease
1. Document it in the user's manual.
2. Add it as a recognised highlighted command in script files (e.g. mark it
with brown just as the print and printf commands).
Best regards
Andreas
15 years, 8 months
Database error on trying to edit gretl wiki
by andreas.rosenblad@ltv.se
When trying to edit the gretl wiki, I get the following error message:
Database error
A database query syntax error has occurred. This may indicate a bug in the
software. The last attempted database query was:
(SQL query hidden)
from within function "Article:getHiddenCategories". MySQL returned error "
1146: Table 'wikidb.page_props' doesn't exist (localhost)".
Best regards
Andreas
15 years, 8 months
CVS Repo Cleanup
by Henrique
Allin,
Do you remember that I'd created a folder in the gretl repository
(called PO)? After this I sent a request to SourceForge and they said that
this task could be done by myself (in the past, only the SourceForge was
able to delete modules in the repositories).
The topic "CVS self-service repository management launched 2008-12-11"
explains how to do this, but, unfortunately, I was unable to do this (I
really need to improve my CVS skills). The topic says:
SourceForge.net now permits project administrators to perform file
management operations on their CVS repositories via our interactive shell
service<https://sourceforge.net/community/forum/topic.php?id=3953&page&replies=1>.
This capability can be used for changing file permissions,
renaming/moving/deleting files, directories and modules within the
repository, and also permits file editing. In the past it has always been
necessary to have SourceForge.net staff perform these operations on your
behalf.
To use this facility, login to an interactive
shell<https://sourceforge.net/community/forum/topic.php?id=3953&page&replies=1>and
follow the instructions you see when you run:
adminrepo --help
Please, can you do this? I'd tried but I'm not sure how this works.
Best,
Henrique
--
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge
15 years, 8 months