The user must provide a procedure for computing the log-likelihood for either one observation, or for a matrix of observations. The procedure must have two input arguments, first, a vector of parameter values, and second, one or more rows of the data matrix. The output argument is the log-likelihood for the observation or observations in the second argument evaluated at the parameters values in the first argument. Suppose that the function procedure has been named fct, the following considerations apply:
FORMAT logl=fct(x,y) INPUT x - vector of parameters of model y - one or more rows of the data set (if the data set has been transformed, or if vars /= 0, i.e., there is selection, then y is a transformed, selected observation) if __row == 1, one row of the data set if __row >= 2, if data set is stored in memory then all of the data set will be passed to FCT; if data set is stored in GAUSS data file then __row will be passed to passed to FCT. if __row <= 0, For data set is stored in memory same as __row>= 2, for GAUSS data file the maximum number of rows that will fit in memory will be computed by MAXLIK. if _max_Lag >= 1, a matrix of observations, the first is the i-_max_Lag row, and the final row is the i-th row. OUTPUT logl - the log-likelihood if __row == 1 or _max_Lag >= 1, a scalar value for a given observation, otherwise a vector of log-likelihoods.
REMARKS
If you have written the procedure such that it must compute the log-likelihood of one observation at a time then you must set __row = 1. But if you are able to write the procedure so that a vector of log-likelihoods may be returned then set __row=0; If you are getting "insufficient memory" messages when the data are being read from a GAUSS data file then either set __row ==1 or to some positive value. Also, if the data set is stored in a GAUSS data set and the selected data set will fit into memory, then MAXLIK will read it in and store it before beginning the iterations. In this case the setting of __row will follow the rules of a data set stored in memory. Significant reduction in computation time may be achieved when the data set can be stored in memory and procedure is written to compute vectors of log-probabilities.
The procedure that computes the log-likelihood may itself call MAXLIK. When calling MAXLIK recursively the following considerations apply:
If a data set is being analyzed and it is to be transformed or deleted for missing data or cases are to be selected, then this can be done only on the outermost version of MAXLIK, i.e., the version called in the original command file. Variable selection (as opposed to case selection) can be done on any level through the second argument in the call to each version of MAXLIK. Data sets can be opened by nested versions of MAXLIK. If a nested version of MAXLIK is going to use the data set opened by the outer version of MAXLIK then pass a null string (i.e., "") in the first argument in the call. If it is going to analyze a different data set from the outer version then pass it the data set name in a string. You may also load and store a data set in memory in the command file and pass it as the first argument in the nested call to MAXLIK.
Before the call to the nested version of MAXLIK, the global variables may be re-set by calling MAXCLR. You must not use MAXSET because that will clear information about the data sets opened and processed in the outer version. The only differences between MAXSET and MAXCLR are references to these globals.
You may also want to disable the keyboard control of the nested versions. This is done by setting the global _max_key = 0 after the call to MAXCLR and before the call to the nested MAXLIK.
Maximum Likelihood
MAXLIK performs maximum likelihood estimation of the parameters of statistical models. All you provide is a GAUSS function to calculate the log-likelihood for a set of observations. MAXLIK does the rest.
Major Features of Maximum Likelihood
Improved Algorithm MAXLIK implements the Cholesky factorization, solve, and update methods for the BFGS, DFP, and Newton algorithms. Event Count and Duration Regression
An included COUNT module (by Gary King, Harvard University) estimates limited dependent variable models. These procedures provide maximum likelihood estimator s for parametric regression models of events data, i.e., models with dependent variables that are measured either as event counts or as durations between events.
Platform: Windows, LINUX and UNIX. Requirements: GAUSS/GAUSS Light version 3.6.18 or higher.
[此贴子已经被作者于2005-1-15 13:33:08编辑过]
GAUSS™ Applications
Available for Windows, Unix, and Linux| Algorithmic Derivatives | A program for generating GAUSS procedures for computing algorithmic derivatives. |
| Constrained Maximum Likelihood | Solves the general maximum likelihood problem subject to general constraints on the parameters. |
| Constrained Optimization | Solves the nonlinear programming problem subject to general constraints on the parameters. |
| CurveFit | Nonlinear curve fitting. |
| Descriptive Statistics | Basic sample statistics including means, frequencies and crosstabs. This application is backwards compatible with programs written with Descriptive Statistics 3.1 |
| Descriptive Statistics MT | Basic sample statistics including means, frequencies and crosstabs. This application is thread-safe and takes advantage of structures. |
| Discrete Choice | A statistical package for estimating discrete choice and other models in which the dependent variable is qualitative in some way. |
| FANPAC MT | Comprehensive suite of GARCH (Generalized AutoRegressive Conditional Heteroskedastic) models for estimating volatility. |
| Linear Programming MT | Solves small and large scale linear programming problems |
| Linear Regression MT | Least squares estimation. |
| Loglinear Analysis MT | Analysis of categorical data using loglinear analysis. |
| Maximum Likelihood | Maximum likelihood estimation of the parameters of statistical models. |
| Nonlinear Equations MT | Solves systems of nonlinear equations having as many equations as unknowns. |
| Optimization | Unconstrained optimization. |
| Time Series | Exact ML estimation of VARMAX, VARMA, ARIMAX, ARIMA, and ECM models subject to general constraints on the parameters. Panel data estimation. Unit root and cointegration tests. |
[此贴子已经被作者于2005-1-15 14:05:04编辑过]
Constrained Optimization
CO is an applications module written in the GAUSS programming language. It solves the Nonlinear Programming problem, subject to general constraints on the parameters - linear or nonlinear, equality or inequality, using the Sequential Quadratic Programming method in combination with several descent methods selectable by the user - Newton-Raphson, quasi-Newton (BFGS and DFP), and scaled quasi-Newton. There are also several selectable line search methods. A Trust Region method is also available which prevents saddle point solutions. Gradients can be user-provided or numerically calculated.
CO is fast and can handle large, time-consuming problems because it takes advantage of the speed and number-crunching capabilities of GAUSS. It is thus ideal for large scale Monte Carlo or bootstrap simulations.
GAUSS Applications are modules written in GAUSS for performing specific modeling and analysis tasks. They are designed to minimize or eliminate the need for user programming while maintaining flexibility for non-standard problems.
Platform: Windows, LINUX and UNIX. Requirements: GAUSS/GAUSS Light version 3.2.19 or higher.
[此贴子已经被作者于2005-1-15 14:30:22编辑过]
CO - Constrained Optimization
CO is an applications module written in the GAUSS programming language It solves the Nonlinear Programming problem, subject to general constraints on the parameters - linear or nonlinear, equality or inequality, using the Sequential Quadratic Programming method in combination with several descent methods selectable by the user - Newton-Raphson, BFGS, DFP. There are also several selectable line search methods. Gradients can be user-provided or numerically calculated.
CO comes as source code and requires the GAUSS programming language software. It is available for Windows95, OS/2, DOS, and major unix platforms.
For further information: http://www.aptech.com>
[此贴子已经被作者于2005-1-15 14:39:59编辑过]
谢谢, 你比我做得好啊 , 我也是刚学gauss的, 以前都用matlab 但我发现
gauss更具挑战, 
[此贴子已经被作者于2005-1-15 21:00:24编辑过]
是啊, 我也下载了hanszhu 的模块, 不知如何才能简单的装上
顺便问一声,Nonlinear Equations ;Time Series ; Linear Programming
还有吗?
[此贴子已经被作者于2005-1-15 15:23:32编辑过]
Question: 有没有大侠有介绍使用这些模块的资料?
Answer: You could find the User Guide for Gauss.Maximum Likelihood Estimation at http://down.cenet.org.cn/
lichunji
I have not found the way to download the file from cenet until now. Maybe you can do me a favor.
扫码加好友,拉您进群



收藏
