The G Regression Program
|
|
|
|
|
G is an econometric regression and model-building program for Windows. It is designed for estimation of regression equations with annual, quarterly, or monthly data. G takes its name from Carl Friedrich Gauss, the originator of the method of least squares.
With G you can:
- Build and use data banks. Thousands of regularly updated economic time series, in the form of G data banks are available through INFORUM and EconData. You can easily build banks of your own data prepared in spread-sheet programs, drawn from other data banks, or typed in a convenient free-form format for input to G .
- Transform variables with algebraic formulas or with a variety of functions including logarithms, exponentials, powers, cumulation of stocks, previous-peaks, random numbers, conversion of monthly to quarterly series or of quarterly to annual series, and interpolation from annual to quarterly series or from quarterly to annual series.
- Estimate ordinary least squares regressions.
- Employ the Hildreth-Lu procedure to deal with auto correlated errors.
- Do seemingly unrelated regression and stacked regression with constraints across equations.
- Apply conventional two-stage or three-stage least squares.
- Apply soft constraints -- also called stochastic constraints, mixed or Bayesian estimation or generalized ridge regression — on parameter values.
- Estimate distributed lags with a generalization of the Almon technique and other methods. Plot distributed lag weights.
- Estimate and forecast with equations involving both lagged values of the dependent variable and moving average error terms (ARIMA techniques). Calculate auto correlation and partial auto correlation functions.
- Estimate non-linear regression equations with two different algorithms.
- Estimate proportions models with multinomial regression algorithms.
- Save the results of estimations in files which can be combined into a model by Build, G 's model-building partner.
- Graph series and the results of fitting equations. G graphs data with up to seven series on the screen at one time, either with a uniform scale for all series of with a different scale for each series. It does semi-logarithmic graphs with proper marking of the vertical axis. It can make line graphs, bar graphs, and scatter graphs. It allows annotation of the graphs with both words and lines before printing.
- In addition, there help files are included in addition to the G7 manual, sample and demo scripts, and other documentation.
Although G can respond to directly typed commands, the serious user will want to build files of commands with a screen editor and execute these files. As G operates, it builds a data bank which can later be permanently saved. Into this bank it can pull series from other source data banks.
For each regression, G automatically provides the standard error of estimate (SEE), the mean absolute percentage error (MAPE), R2, the auto correlation coefficient of the residuals (rho), the Durbin-Watson statistic, the number of observations, the number of degrees of freedom, the period of estimation, and the SEE and MAPE for forecasting one period ahead taking account of the auto correlation of the residuals. If a regression is being tested beyond the period of fit, it shows the SEE and MAPE in this period. For each independent variable, it shows the regression coefficient, the marginal explanatory value, the t-statistic, F-statistics, the elasticity at the sample mean, the beta coefficient, the mean, and the derivatives of all of the other independent variables with respect to any selected independent variable. You can also display the correlation coefficient matrix for all the variables. In addition, Chow tests of homogeneity, and the Jarque-Bera test of normality are available. After regression, the residuals and the leverage variables are available.
While G is intended primarily for time series analysis, it can be adapted for cross sectional data and techniques such as logit, probit, and Tobit analysis can be performed via the non-linear regression capability.
The current version of G7 is available for Windows platforms. G now is available for free download.
On this site, there is also a G Reference, a G Tutorial, and Clopper Almon's book Craft of Economic Modeling which offers an extensive guide to economic modeling with G7.
How to Obtain G
Inforum maintains G and makes it available for free on this site. The easiest way to obtain it is from this document. Click on the G7 icon at the top of the page, or click on the hyperlink below to download the installation program..
Here is what you will need:
g7exe.exe - This is a self-extracting .zip file of the G7 program and other Inforum software. It is about 9 Mb in size. After downloading this file, run it by double-clicking on it, or by typing its name at a DOS prompt. Do this in a temporary directory. One of the files that will be extracted is SETUP.EXE. Next, run this setup program, and the InstallShield session will begin. This will load the software into the default location of C:\PDG, or into another location that you specify.
You may also want to create a directory called \GBANKS. Under this directory, you can create subdirectories for each of the databanks you download from EconData.
To start G7 for Win32, first create an shortcut on the desktop that points to C:\PDG\G7.EXE. Then click on this icon to start G7 . You may also simply type "G7" at the DOS command line, or go to the start button and run, then run g7.exe. In response to the first window that opens up, make sure there is a G.CFG file then hit the {Enter} (return) key. To access the Help menu, choose help from the top of the G7 window. The contents tab opens all the help files while the index allows you to search for certain topics. The tutorial under the help is currently not complete; however, by following Chapter 3 of The Craft of Economic Modeling you can run through a self tutorial. There is also a G Reference installed in the DOC subdirectory below the PDG directory, if you choose to install it.
To start G for DOS, type "G" at the DOS command line. In response to the first question that comes up, hit the {Enter} (return) key. To access the Help menu, type "help". The help screen is divided into topics. To observe G in action, as well as get a tutorial on its use, run "G DEMO" from DOS.
Additional Software
To install G7 on a machine for the first time, please follow the instructions above. The installation program will provide you with a complete software package. In some cases, newer versions of some programs may be available. These versions are intended for testing, and are not yet available as part of the installation package. You may download available beta versions of our software by clicking the hyperlinks below. Please save the program to the C:\PDG directory on your machine. If you do not have a C:\PDG directory, then please first install the full software package.
| Program | Version | Release Date |
| G7 | 7.3756 | August 8, 2008 |
| G7 Help Files | September 12 , 2007 | |
| IdBuild (for Optimization) | 6.103 | September 12 , 2007 |
| IdBuild | 5.89 | January 26, 2006 |
| Macfixer | 1.63 | November 2, 2007 |
| Fixer | 1.80 | April 14, 2006 |
| Compare | 6.581 | August 1, 2008 |
| Banker (XP compatible) | 2.4 | June 26, 2008 |


