I need to take the log difference of a matrix, i.e. log(M[2 rows(M):,]/M[1:rows(M)-1,]). Unfortunately, M has elements equal to zero. I need to replace the nan's and inf's with 0's. This almost works
M = isnan(M) ? 0 : M
but does not remove inf's. Any sugestions?
I have firm level data and two categorical variables (region and
I need to define another variable which is an index identifying the
unique combinations region-sector each firm belongs to, so I can use it
in computing cluster-robust s.e.
One way to do this is to use the command "values" for region and sector
and then use a nested loop, but this seems quite time-consuming...
Is there a simpler way in gretl to do it?
BTW, it could be useful to allow one to use the option "cluster" also
with the FE estimator.
Since the robust s.e. used in FE is the Arellano estimator and this is a
s.e. clusterized over cross-sectional units and thus it can be
considered a specification of the cluster-robust estimator, it seems
quite natural to allow one to identify clusters different from the
panel y 0 x --robust=cvar
panel y 0 x --cluster=cvar
where the default behavior
panel y 0 x --robust
is to clusterize over cross-sectional units.
We've just been told by the SF admins that gretl has been selected to be
on the ballot for the August SourceForge project of the Month. This vote
will be conducted on SourceForge, and will run until March 6th. The blog
post linking to this vote is at
and the vote itself is at
There's no monetary reward involved, it's just for the glory (although
the project could get some nice publicity from this).
So if you like gretl and you want to tell people that you do, here's your
chance. Note: you need to have a sourceforge account to be able to cast
your vote; it doesn't cost you anything to create one if you don't have
one already, though! ;)
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
Dear users of gretl on Mac,
I'm currently cleaning up the gretl bug tracker on Sourceforge a little
bit, and I would like to hear from you if the bug #161 is still present:
"After double-clicking on a Gretl file on Finder (the Mac equivalent to
Windows Explorer) the data set or session is not opened if a a Gretl
session is already running."
The crucial point here seems to be "if a a Gretl session is already
running", so it's not a test of this bug to just double-click a gretl file.
Please mention your MacOS version and gretl version if you report back.
Hello Mac users,
I just realized that the quartz, 64-bit gretl snapshot that I put up
today will not run on OS X 10.7 or higher. This is to do with adding
MPI support, which is quite tricky. I'll try to fix this soon (if
not tomorrow than Monday) but in the meantime please avoid the
snapshot if you're running Lion+.
You can expect a full announcement about MPI support in gretl early
Am 20.02.2014 12:09, schrieb smyks:
> I have checked with denmark.gdt dataset:
> coint 10 1 2 --verbose --test-down <= Gretl reports sample size of 44
> coint 10 1 2 --verbose --test-down --skip-df <= Gretl reports sample
> size of 53
Ok I now see what you mean, effectively different samples are used in
what should be the same approach, like you said. I don't see a
justification for that (i.e. I tend to agree it's a bug).
> To my understanding both command lines should employ the same sample
> size of 53, which is in line with Hayashi (2000).
Actually, when looking at the different samples that are used in the
various steps of the procedure I think they're debatable in general. If
you pick a max lag of 10 I would actually tend to favor the shortest
sample (T=44) instead of the longest (T=53), because only the shortest
is the common denominator for everything. Of course, if results differ
wildly, it's a sign of problems anyway.
Hi Gretl users,I need advice with regard to Engle-Granger cointegration test. Why the tstats are different for the same series when flag--skip-df is added? I have noticed that for test carried with --test-down flag and without --skip-df flag, gretl uses N-pmax-1 observations (where pmax is max number of lags picked by a user for testing down), while with --skip-df flag it uses N-p-1, where p is number of lags based on information criteria/tstat calculated by Gretl? This affects tstats, pvalues and final test results.Also, I have noticed that --test-down flag does not allow the choice between MAIC, MBIC and tstat anymore. This flag works fine on adf test thou.Thanks in advance,Andrzej
I am estimating a model by passing a list of variables and extra items
in bundle to a user defined function
I would like to be able to print out results that include the
effective sample period in the same way the OLS procedure does
smpl 1995:4 2012:4
list xlist= x1 x2 x3 x4
ols y const xlist
Model 1: OLS, using observations 1985:1-2012:4 (T = 112)
Dependent variable: y
... plus results ...
My function would be defined as
function bundle bestimate(list xlist, bundle bmodel)
In my case it is most convenient to put all variables in xlist and
pull out the first as the dependent variable. I can figure
everything I need except how to capture the smpl dates for a printout.
Any suggestions? I would especially like to be able to show the
effective dates for any cases where lags create missing observations
or the data ends before the last smpl date.