Mugshot

Grocer: an econometric toolbox for Scilab

(Painting by Marion Dubois: thanks Marion! for more pictures see Marion's web page )

What is grocer? / Grocer capabilities / Download / What's new / Grocer citations /e-mail / Home

What is Grocer?

Grocer is the econometric toolbox for Scilab, a matrix-oriented software similar to Gauss and Matlab, that I have developed, first alone and since 2005 with Emmnanuel Michaux. The current version works with Scilab versions from the 3.0 to the 5.3.3 (the transitory 5.0.1 excepted).
Like Scilab, Grocer is free and open source.

Grocer Capabilities:

- ordinary least squares and various single equation methods (autocorrelated models, instrumental variables, non linear least squares, robust methods, quantile regression...)
- basic estimation with limited dependent variables: ordered logit and probit (with 2 or more variables); tobit; multivariate logit
- specification tests (multicollinearity, autocorrelation, heteroskedasticity, normality, predictive failure,...)
- simultaneous equations methods (SUR, two and three stage least squares,...)
- VAR, VECM, VARMA and GARCH estimation
- the Generalized Method of Moments (GMM)
- the Kalman filter and time varying parameters estimation
- unit root tests (ADF, KPSS,...), panel unit roots and cointegration methods (CADF, Johansen,...)
- various business cycle tools: HP, Baxter-King and Christiano-Fitzgerald filters, the Bry-Boschan-Harding-Pagan procedure for the dating of turning points, spectral analysis
- basic panel data estimation: fixed and random effects, between estimation
- Static and Dynamic factor estimation
- numerous time series disaggregation methods: Chow-Lin, Litterman,...
- a pc-gets like device, that performs automatic general to specific estimations
- estimation of Markov-switching models
- Bayesian Model Averaging estimation
- a contributions device,that provides contributions of exogenous variables to an endogenous one for any dynamic equation

You can download:

WARNINGS:

e-mail: grocer.toolbox[at]free.fr (of course, replace [at] with @).

What's new:

(2013/04/04): Grocer version 1.55 has been adapted to the just released 5.4.1 Scilab version. You can download Grocer in 3 different versions, according to the Scilab version you use:

  • until the 4.1.2 version,
  • between the 5.0 and 5.1.1 version,
  • from rthe 5.2.0 version.
  • (2013/03/16): Grocer version 1.55 has been posted on the web.

  • Function doornhans, that performs Doornik and Hansen normality test, has been extended to deal with multivariate residuals.
  • Ericsson and MacKinnon cointegration test was not properly implemented in function olsecm: now it is (Thanks to Bruno Quille for having pointed if to us).
  • Function varma did not accept more than 1 exogenous variable: now it accepts any number.
  • Disaggragation functions did not work properly when the high frequency data did not cover the whole low frequency period: now they do.
  • Function iv did not accept ts: now it does.

    (2012/11/10): the server that hosts Grocer's e-mails seems to be very tired and breaks regularly these times; so, if you send an e-mail at grocer.toolbox[at]free.fr, do not be surprised if the answer is unusually long; you can alternatively send your e-mails at grocer.toolbox[at]gmail.com (replace of course [at] with @).

    (2012/10/20): Grocer version 1.54 has been posted on the web.

  • Grocer functions have been adapted when needed to run properly with the 5.4.0 Scilab version.
  • Functions performing Insee's method for disaggregating time series, written by Emmanuel Michaux, have been added to the 1.54 version: the corresponding functions have circulated in French circles since a long time, in particular to mimic the building of the French quarterly national accounts; but, as examplified by a paper by Dorian Rouché and Michael Sicsic (www.tresor.economie.gouv.fr/File/375987), they can be used in other contexts. This method allows the adjustement of different low frequency models (AR(1) or Random Walk with or without constant) and then minimizes the sum of the difference of squared residuals, in order to minimize the fluctuations of the series stemming from the residuals. The corresponding function is etalcalinsee, with the corresponding demo etalcalinsee_d (see also the help file: help etalcalinsee).
  • Function hessian0 has been corrected to avoid a bug with function ms_quali.
  • An explicit error message when the # of switching variances is entered with a wrong value has been added to functions ms_mean, ms_reg and ms_var.
  • A special character in function IPS1 that made Grocer installation crash on some O/S has been replaced.
  • Aggregation functions for times series m2a, m2q and q2a have been changed in order to be able to deal with NA values (an NA value in a month does not prevent anymore the calculation of a quarterly aggregated series for quarters with non NA months).

    (2012/06/30): Grocer version 1.53 has been posted on the web.

  • Function msvar_irf, that aims at implementing impulse response functions for Markov-switching VARs, was not working properly: tests made by myself and Makram Khalil (thanks Makram) semm to indicate a proper working now.
  • Function automatic_signed, that performs automatic regression with sign constraints on the coefficients, was not working properly in some cases because of problems in the corresponding printing funtion: this is fixed.
  • Function sur, that performs seemingly unrelated regressions, contained a residual pause: this pause has been removed.
  • Function hessian0 has been extended to allow passing variable arguments of the input function.
  • In function brybos, the default algorithm when time series are neither monthly nor quarterly has been turned to 'bb' (for Bry-Boschan) instead of 'hp' (for Harding Pagan) because of the greater flexibility of this option.
  • Function kalman has been slightly modified: it now uses function hessian0 to calculate standard errors.

    (2011/02/18): Grocer version 1.52 has been posted on the web. This is a small update, whose main purpose is to make Grocer run on the forthcoming Scilab 5.4.0 version (already available as an alpha version). Emmanuel Michaux has also added a function waldchi performing a Wald test of linear constraints using its Chi-Square form (see function waldchi_d for a demo) and an option 'notstat', that prevents from calculating the Student statistics of the estimated coefficients, has been added to functions ms_mean, ms_reg and ms_var: this can be useful if the numerical hessian is not invertible (for instance in the case you have many coefficients) or in an experimental phase (moreover, you can calculate them ex-post with function MSVAR_stderr). Several bugs have also been corrected: function readxls2b has been made working on ts without comments; function varmaf has been made working when the user had not given a name to its variables in function arma (thanks to Jekaterina Borodina for having signalled and corrected this bug); function prtauto_signed which was lacking has been added; function gmmAndMon.sci, which used the wrong sign of the AR part when using an ARMA, now uses the good one; function BNG_ur did not work with more than 1 factor, now it works; option 'mindat' that was not correctly implemented in function explone is now correctly implemented; in function car2freq the good folder definition for the database basets.dat has been restaured; the difference of 2 tsmats (performed by function %tsmat_s_tsmat) is now working when the option 'reset' prevails.

    (2011/10/29): Grocer version 1.51 has been posted on the web. 2 new capabilities have been added:
    - a function msvar_irf that provide impulse response functions for Markov-switching VAR models: for a demo see function msvar_irf_d or help msvar_ird; since I have not been able to confront the results of this function with available results, I invite the user to check carefully the code and/or the plausibility of the results she may obtain.
    - a function contrib_logm2grq, built upon the model of function contrib_logq2gra, and which calculates contributions of exogenous variables to the quarterly growth rate of an endogenous variable when the econometric equation is estimated on the logarithm of the monthly observations of the variable (see the help from contrib_logq2gra for explanations).

    A few bugs have been corrected: in function adf, the order of the critical values, which was wrong, has been corrected; in function cadf, option 'noprint', which was not working, now works; help files for bfl and bfl1 were not correct (thanks to Cecile Ballini for having signaled all these bugs); function banerji works again, with the replacement of the removed Scilab function sort with gsort.

    (2011/09/28): Grocer version 1.5 has been posted on the web.

    The main novelties of the 1.5 with respect to the previous 1.46 version are the following:
    - you can now run ols with ARMA errors (function olsarma);
    - Andrews and Ploberger break point tests have been introduced, along with Bruce Hansen bootstrap method to evaluate their p-value (function AndPlob);
    - Basic quantile regression is now available in Grocer (function qreg);
    - those who do not want to use the bootstrap method with the Johansen cointegration method introduced with the 1.4 version can again use the asymtotic p-values (function johansen);
    - an imperfect, partial, but nevertheless substantial Gauss to Scilab translator (function gauss2sci);
    - Help files were not totally adapted to Scilab 5.3 family: they have been adapted and examples have been checked, corrected and improved at the occasion;
    - creation of a function automatic_signed that provides estimation à la pc-gets with sign constraints on the coefficients;
    - creation of a function quantile that calculates quantiles of colums of a vector;
    - adaptation of functions ecm and becm to allow the user to remove from the short term exogenous variables the part that can be integrated into the cointegration relationships;
    - taking into account Michaël Baudin's advice, non essential optimisation functions dfp_min, frpr_min and pow_min have been removed;
    - correction of several bugs: impexc2bd did not work when lines in the text files ended with a semicolumn; function mean did not work with matrices of ts; function uninstall_grocer did not work properly anymore; disagregation functions bfl, chowlin, denton, difonzo, fernandez and litterman did not work when bounds were given; since the extension in version 1.46 to more general cases, functions ms_mean, ms_reg and ms_var did not work anymore when a priori datation was given or when there were non switching variables; function fan_chart did not work when the number of bands was lower than 5; option bandwith='C' did not work in function ADF_individual; when LagOrders was given, function Levin_Lin did not work; function Pesaran did not work anymore starting from Scilab 5.3.0 versions: a small change has been made to restore the function; function oprobit1 did not work when not launched from function oprobit; function statfore did not work with ts when there was only a constant in the model; functions da2m, da2q and datelf2hf0 did not work anymore; many overloading tsmat functions did not work with 'reset' option.

    The manual has been updated and corrected: in particular, the names of many folders used in the manual examples, which were not correct anymore since Grocer adaptation to Atoms, Scilab module manager, have been restaured.

    To see older modifications, see here

    Last updated: 2013/04/04