楼主: guozhuli
11465 26

有谁懂面板数据联立方程 [推广有奖]

11
Trevor 发表于 2006-4-24 07:28:00

Discussion of linear simultaneous equations systems may be found in almost all econometric textbooks. For example, Chapter 18 in Estimation and Inference in Econometrics by Russell Davidson and James G. MacKinnon (ISBN 0-19506011-3, Oxford University Press, 1993)

Linear Simultaneous Equations


|| Unconstrained Klein's Model I Example || Constrained Klein's Model I Example ||

Discussion of linear simultaneous equations systems may be found in almost all econometric textbooks. For example, Chapter 18 in Estimation and Inference in Econometrics by Russell Davidson and James G. MacKinnon (ISBN 0-19506011-3, Oxford University Press, 1993), or chapter 19 in Econometric Analysis, 2nd Ed. by William H. Greene (ISBN 0-02-346391-0, Macmillan, 1993).


The linear simultaneous equation model can be represented by the matrix equation:

where Y is an TxK matrix of T observations on K endogenous variables, X is an TxL matrix of T observations on L exogenous variables, and is a KxK matrix of the coefficients among the endogenous variables, B is an LxK matrix of the coefficients of the endogenous variables on the exogenous, and Z is a TxK matrix of unobserved residuals.

Estimates for B and are found by minimizing the log-likelihood:

where

Not all of the elements of B and can be estimated. To "identify" the model it is necessary to fix some elements of B and to zero. It is also possible to fix elements of the residual covariance matrix to zero as well. The diagonal of is also fixed to one as a "normalization". See the references above for details about the identification of simultaneous models.

Unconstrained Klein's Model I Example

Klein's Model I is a well-known example that is presented in many econometrics textbooks, including the references above. From page 595, Greene (op.cit.) the equations for this model are:

where C is consumption, I investment, Wp private wages, X equilibrium demand, P private profits, K capital stock, and where G is government spending, T is indirect business taxes plus net exports, Wg is the government wage bill, A is time trend measured from 1931.

For this model, we get

and

and because the last three equations in the model are identities, the last three columns and rows in the residuals covariance matrix are fixed to zeros.

The program for estimating the coefficients in this model, klein.prg,is written in the GAUSS programming language and uses Aptech System's Maximum Likelihood (MAXLIK) applications module.

Estimates are produced for a 22 year time series of 9 variables of the U.S. economy from 1920 through 1941.

The results are presented in klein.out

Klein's Model I is a dynamic model because it contains autoregression coefficients, i.e., coefficients of endogenous variables on their values at a previous point in time. For such a model to be dynamically "stable" or stationary, the model estimates must satisfy a certain condition. Let be the submatrix of B associated with the relationships of the endogenous variables to the exogenous variables that are their lagged versions. Then stability requires that the eigenvalues of be less than one in absolute value.

For our estimates of Klein's Model I, we have

and

the absolute values of the eigenvalues of which are

 0.0000 0.0000 0.0000 0.0420 0.4911 0.4911 

This confirms the stability of the model implied by our estimates. ||Top||HomePage||


Constrained Klein's Model I Example

Greene's book (op.cit.) contains an additional 32 years of data for Klein's Model I. Estimating the model with this additional data presents some difficulties that require the special features of Aptech System's Constrained Maximum Likelihood (CML) applications module.

First, the data are highly correlated, causing difficulty for the estimation process, and second, the unconstrained estimation produces estimates that imply an unstable system.

To deal with the first problem, CML is used to bound the coefficient estimates. For bounds we will use the 99% confidence limits from the analysis of the 1931 to 1942 data. For the second problem we will use CML to constrain the eigenvalues of to be less than one in absolute value.

The program for estimating the coefficients in this model, cklein.prg,is written in the GAUSS programming language and uses Aptech System's Constrained Maximum Likelihood (CML) applications module.

Estimates are produced for the original 22 year time series of 9 variables of the U.S. economy from 1920 through 1941 plus in addition, the 32 year time series.

The results are presented in klein.out

The results of our stability test are:

 0.0000 0.0000 0.0000 0.0026 0.9627 0.9627 

The Lagrangean coefficients associated with the constraints on these eigenvalues are:

 0.0000 0.0000 0.0000 1.9556 0.0000 0.0000 

indicating that the model estimates are on the stability boundary.

12
Trevor 发表于 2006-4-24 07:50:00

13
bigdog_1 发表于 2006-4-24 12:34:00

Klein's model is a classic example of simultaneous equstions models. But the data set of Klein's model is not panel.

SEM can be estimated by 3SLS-GLS. Many softwares such as SAS, LImdep and Stata can estimate it directly (just a command).

But in this case, You want to get fixed effect and random effect of panel data, you have to use some different strateages.

I do not use 3SLS to estimate a panel data set, but i think my way is feasible. If you have any comments and criticals about it, please let me know.

14
Trevor 发表于 2006-4-24 12:59:00

[转帖]

Dear listers:

I need to estimate simultaneous equation model for panel data.(two linear regression models with correlated error is enough). I searched help and archive, but could not locate any information. How can I estimate such a model on Stata? I appreciate any information.Thanks in advance!

15
Trevor 发表于 2006-4-24 13:01:00

[转帖]

以下是引用Trevor在2006-4-24 12:59:00的发言:

Dear listers:

I need to estimate simultaneous equation model for panel data.(two linear regression models with correlated error is enough). I searched help and archive, but could not locate any information. How can I estimate such a model on Stata? I appreciate any information.Thanks in advance!

Kim,

Stata doesn't have a built-in routine for panel data simultaneous
equations. Maybe someone out there has written their own program for
this, but when I did -findit panel simultaneous- nothing came up.

If you can transform or recast your model into a non-panel framework
(e.g., by transforming into deviations from means or using explicit
dummies for observational units) you could use -reg3- to do 3-stage
least squares.

The alternative is to estimate the system equation-by-equation using
-xtreg- or -xtabond- or -xtivreg- or whatever. It won't be efficient
(in the way that a system estimator like -reg3- is) but your results
will be consistent, and will have the usual advantage over system
estimation in that if one equation is misspecified, it won't spill
over and contaminate the estimation results for the other equation.

Hope this helps.
Prof. Mark E. Schaffer
Director
Centre for Economic Reform and Transformation
Department of Economics
School of Management & Languages
Heriot-Watt University, Edinburgh EH14 4AS UK
44-131-451-3494 direct
44-131-451-3008 fax
44-131-451-3485 CERT administrator
http://www.som.hw.ac.uk/cert

16
Trevor 发表于 2006-4-24 13:05:00

Estimating a Linear Simultaneous Equation Model with Panel Data

Soo-Bin Park
Department of Economics, Carleton University

[此贴子已经被作者于2006-4-24 13:20:49编辑过]

17
Trevor 发表于 2006-4-24 13:09:00

[推荐]

A panel data simultaneous equation model with a dependent categorical variable and selectivity


Publication Date: 01-MAR-03
Publication Title: Journal of Computational & Graphical Statistics
Author: Leon-Gonzalez, Roberto

Description

This article develops a Bayesian Markov chain Monte Carlo algorithm to estimate a panel data simultaneous equations model with a dependent categorical variable and selectivity. In contrast with previous Bayesian analysis of selectivity models, the algorithm does not require the explanatory variables to be observed when the value of the dependent variable is missing. This makes the algorithm applicable to studies of the labor market where there are typically missing regressors. In addition, the article provides an scheme to sample the slope parameters using an analytical approximation of the posterior distribution as a proposal density. Estimation with a simulated...


49781.pdf (155.5 KB)

[此贴子已经被作者于2006-4-24 13:18:27编辑过]

18
bigdog_1 发表于 2006-4-24 13:40:00
以下是引用Trevor在2006-4-24 13:01:00的发言:


Kim,

Stata doesn't have a built-in routine for panel data simultaneous
equations. Maybe someone out there has written their own program for
this, but when I did -findit panel simultaneous- nothing came up.

If you can transform or recast your model into a non-panel framework
(e.g., by transforming into deviations from means or using explicit
dummies for observational units) you could use -reg3- to do 3-stage
least squares.

The alternative is to estimate the system equation-by-equation using
-xtreg- or -xtabond- or -xtivreg- or whatever. It won't be efficient
(in the way that a system estimator like -reg3- is) but your results
will be consistent, and will have the usual advantage over system
estimation in that if one equation is misspecified, it won't spill
over and contaminate the estimation results for the other equation.

Hope this helps.
Prof. Mark E. Schaffer
Director
Centre for Economic Reform and Transformation
Department of Economics
School of Management & Languages
Heriot-Watt University, Edinburgh EH14 4AS UK
44-131-451-3494 direct
44-131-451-3008 fax
44-131-451-3485 CERT administrator
http://www.som.hw.ac.uk/cert

Thanks Trevor. I am very comfortable with this answer. The last part is the same as greene's book(p413 fifth version).

The key point is that you can estimate them one by one if you do not concern lossing some efficience or you can estimate it using 3sls by programming. My answer is about how to program it though i do not whether it is right or not. By the way, panel data always has the problem of heteroscedasticity, so even you use 2sls to estimate equations one by one, then estimators are no longer fully efficient.

In greene's book, even you use 3SLS, you do not have many gains of efficience. But if you want to publish a paper and you have a SEM, you had better use 3SLS or you have to justify why you do not use it.

[em09]

19
Trevor 发表于 2006-4-25 03:34:00
Hi:

I would like to estimate a simult. nonlin. equation system where errors
are contemporaneously correlated across equations and they exhibit also
first-order autocorrelation within equations. I think the best is to
use proc model FIML, to account for contemporaneous correlation, but I
don't know how to correct for autocorrelation at the same time. I read
one paper where they correct for autocorr. by estimating separate
autorregressive parameters for all the equations and then they estimate
the system simultaneously using FIML command of SAS, but I don't
understand how can it be done.
Thanks

20
Trevor 发表于 2006-4-25 03:35:00
以下是引用Trevor在2006-4-25 3:34:00的发言:
Hi:

I would like to estimate a simult. nonlin. equation system where errors
are contemporaneously correlated across equations and they exhibit also
first-order autocorrelation within equations. I think the best is to
use proc model FIML, to account for contemporaneous correlation, but I
don't know how to correct for autocorrelation at the same time. I read
one paper where they correct for autocorr. by estimating separate
autorregressive parameters for all the equations and then they estimate
the system simultaneously using FIML command of SAS, but I don't
understand how can it be done.
Thanks

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-30 05:03