Fixed effects forecast
by Ricardo Gonçalves Silva
Hi,
Can Gretl forecast 1 to 3 periods ahead an estimated panel data(fixed-effects with no iterations) model?
HTH
RIck
13 years, 2 months
Paper advocating open source software and gretl
by Talha Yalta
Dear gretl users:
You might be interested to hear about my new paper entitled "Should
Economists Use Open Source Software for Doing Research?" published
this month in Computational Economics. The paper investigates
econometric software reliability and advocates the use of open source
software by taking gretl as a case study and showing how responsive
and transparent its development process is. I think many people here
might find it an interesting read.
More information and the download link is available here:
http://ideas.repec.org/a/kap/compec/v35y2010i4p371-394.html
I can send a working paper version if you do not have access to the above.
Cheers
A. Talha Yalta
--
“Remember not only to say the right thing in the right place, but far
more difficult still, to leave unsaid the wrong thing at the tempting
moment.” - Benjamin Franklin (1706-1790)
--
13 years, 8 months
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
creating a dummy variable
by Data Analytics Corp.
Hi,
I have a time series data set that ranges from 1977Q1 to 2009Q4. I want
to create a dummy variable for the recession quarters (1980Q1 - 1980Q3,
1981Q3 - 1982Q4, etc.) as defined by the NBER. How do I do this in Gretl?
Thanks,
Walt
--
________________________
Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
________________________
(V) 609-936-8999
(F) 609-936-3733
walt(a)dataanalyticscorp.com
www.dataanalyticscorp.com
14 years, 4 months
Manipulating a database
by Leandro Zipitria
Hello Gretl Community,
I have a database with daily prices which is in a rather unusual format and
I want to know if it is possibly to create a panel data with it using Gretl
scripts. The database is extracted from a dbf archive, and its has 6
variables:
- The (number of) supermarket from which the price is reported
- The (number of) the product which price is being reported
- The year of the price
- The month of the price
- The price reported itself
- The first day of the month the price is reported
- The last day of the month the price is reported
I have nearly one million rows with data, but in order to do some
regressions -and use it as a panel- I will need to transform it in a
suitable way.
I suppose that the best way that Gretl can handle it is to create a specific
column for each product, and then stack all the supermarkets on a daily
basis. In this way, I will have each column representing a product, the
first 700 rows being a price for each product for supermarket 1, the next
700 rows being a price for each product for supermarket 2, etc.
But in order to do it, I will need first to create the daily prices series,
which is now "compacted" in the datafile. I am attaching a random 10
elements from the database in order to get a better picture of the
situation. In the first sheet I submit the actual data format, on the second
one which I think should be the (best?) result.
I will first ask if this kind of transformation is possible in Gretl. I am
aware that running some scripts on other programs could do the trick, but I
think that it could be possible in Gretl to do it. But I am also think that
it could be rather complex to do it, and I am a new one on this issues.
Thank in advance.
Best regards,
Leandro Zipitría
14 years, 4 months
troubles with shared libraries under cygwin
by denis joubert
Hello,
I have problem compiling my own program under cygwin.
Building libgretl under cygwin seems to work like a charm. But it does
not create shared libraries (even with --enable-shared).
i use for example the quantreg function in my software and when runs
it crash and say :
...
No such file or directory
get_gretl_charset: using UTF-8
Couldn't load plugin function
model->errcode: 12
error message: Failed to load plugin: quantreg.so
...
(the model->errcode and message is printed with gretl functions handling errors)
I tried to force static linking in my software or with
--disable-shared and --enable-static...
but i found no way.
dear gretl-users, do i have any clue ?
thanks
14 years, 4 months
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, 5 months
Another loop question and a print question
by Pindar
Hi there,
I have a panel data set and want to print the realization of a variable for
the ith individual at the
the tth period without altering the sample via smpl. If this works it should
be possible to do
such operations not only for one individual and period but in a loop for
several individuals and periods.
Unfortunately up until now I didn't find the way to do it.
Thanks for your help
Pindar
14 years, 5 months
Loop question
by Henrique Andrade
Dear Gretl Community,
I'm trying to use a loop index inside a script but I don't know how.
According
to "Gretl User’s Guide" the syntax looks like this:
loop i=1..24
But I just need the points where "i" is equal to 6, 12 and 24. Something
like this:
loop i=6;12;24
How can I do that?
Best regards,
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge
14 years, 5 months