Analytical Methods: EViews and Panel Data
lượt xem 49
download
Analytical Methods: EViews and Panel Data
In panel data models (as in singleequation multipleregression models) we are interested in testing two types of hypotheses: hypotheses about the variances and covariances of the stochastic error terms and hypotheses about the regression coefficients. The general to simple procedure provides a good guide.
Bình luận(0) Đăng nhập để gửi bình luận!
Nội dung Text: Analytical Methods: EViews and Panel Data
 Fulbright Economics Teaching Program First Semester 2002 Analytical Methods EViews and Panel Data EViews POOL objects operate on variables that have special twopart names. The first part is the name of the variable, and the second part of the name is the crosssection identifier that indicates which crosssectional unit the variable belongs to. It is good practice (though not necessary) to begin crosssection identifiers with an underscore mark to make the full variable names more readable. Example: Suppose we want to work with a panel data set on the USA, Canada, and Mexico. The variables that we want to use are GDP, Population, and Trade Flows. Variable Name First Part: GDP POP TRA Variable Name Second Part (CrossSection Identifier) _USA _CAN _MEX Variables GDP_USA GDP_CAN GDP_MEX POP_USA POP_CAN POP_MEX TRA_USA TRA_CAN TRA_MEX Thus, there are nine variables in our EViews workfile. It is easy to see that panel data sets can quickly become very large. For example, if we have a panel of 61 Vietnamese provinces for which we have tenyear time series on 8 variables related to agriculture, then our workfile has (61 x 8) = 488 variables. After you have named all of your variables and have got the data into an EViews workfile, you are ready to create the POOL object. You do this by clicking the following sequence: Objects / New Object / Pool A window will open with space for you to list your crosssection identifiers: Eshragh Motahar 1
 In the POOL object you refer to variables by the first part name and the question mark. Thus, if we type a command using GDP? EViews uses all three GDP series for the USA, Canada, and Mexico. Notice the button PoolGenr. PoolGenr is used to create new variables according to rules that are similar to the rules for ordinary Genr. For example, if we want to create GDP Per Capita for all three countries in our POOL, we would click PoolGenr and then type the equation: GDPPC? = GDP? / POP? For estimation, EViews has one window in which the user specifies the equation and the assumptions regarding the stochastic disturbance term. That window is shown here. We will describe each element of the specification window. Dependent Variable The dependent variable will be typed in according to its name and question mark. For example, you might use GDPPC? Eshragh Motahar 2
 Sample By default, EViews will use the largest sample possible in each crosssection. An observation will be excluded if any of the explanatory or dependent variables for that crosssection are unavailable in that period. If the box for Balanced Sample is checked, EViews will eliminate an observation if data are unavailable for any crosssection in that period. Common Coefficients In this field you list all explanatory variables that you assume have the same slope coefficient for every crosssectional unit. Use the format VAR? You may use AR(p) specifications if you want to model autocorrelation. Keep in mind that your panel data set should have a rather long time series dimension in order to get reliable estimators of the autocorrelation coefficients. CrossSection Specific Coefficients In this window you type the names of all explanatory variables that you assume have different slope coefficient values for different crosssectional units. Use the format VAR? Intercept Here you specify whether your model has No intercept ... this case is rare. Common intercept ... this case is unusual. Fixed Effects ... the typical specification.1 Random Effects ... this specification is not often used because it requires strong assumptions that are difficult to meet in practice. Weighting Here, weighting refers to "feasible weighted least squares." No weighting ... no equationspecific heteroscedasticity. Crosssection weights ... feasible WLS to correct for equationspecific heteroscedasticity. SUR ...accounts for contemporaneous crossequation correlation of errors and equationspecific heteroscedasticity. To use this, the timeseries dimension must exceed the crosssection dimension (T > N). 1 If you check this option you will see that the EViews output does not report standard errors, tstats, or pvalues for the estimates of the fixed effects. If you are interested in these (especially for conducting Wald test on these coefficients), you can enter C in the Cross section specific coefficients edit field, and estimate a model without a constant; that is, in the Intercept field check None. Eshragh Motahar 3
 Iterate to Convergence ... causes the program to compute new residuals based on the feasible GLS coefficient estimators, then update the feasible GLS coefficient estimators; compute new residuals based on the new GLS coefficient estimators, then update the feasible GLS coefficient estimators, etc .... Options There is only one option: Whites HCCM can be produced if you do not choose SUR. Hypothesis Testing In panel data models (as in singleequation multipleregression models) we are interested in testing two types of hypotheses: hypotheses about the variances and covariances of the stochastic error terms and hypotheses about the regression coefficients. The general to simple procedure provides a good guide. Before testing hypotheses about the regression coefficients, it is important to have a good specification of the error covariance matrix so that the test statistics for the regression coefficients are reliable. Testing Hypotheses About The Error Covariance Matrix It is helpful to think about restricted and unrestricted error covariance matrices. An error covariance matrix is a square matrix with the error variances of the individual cross sectional equations along the diagonal and with the contemporaneous error covariances on the offdiagonal elements. All covariance matrices are symmetric, so if we specify an error covariance matrix for a panel model with five crosssectional units we have a (5 x 5) matrix with five diagonal units and ten offdiagonal units: σ 12 σ 12 σ 13 σ 14 σ 15 σ2 2 σ 23 σ 24 σ 25 σ 32 σ 34 σ 35 σ4 2 σ 45 σ 52 If we click the button for SUR, EViews will estimate all of these parameters. On the other hand, if we believe that the crosssectional units do not have any contemporaneous crossequation error covariances, we would click the button for CrossSection Weighting and EViews would impose zero restrictions on all of the offdiagonal elements of the matrix. Only the diagonal elements would be estimated: Eshragh Motahar 4
 σ 12 0 0 0 0 σ 2 2 0 0 0 σ 2 3 0 0 σ 2 4 0 σ 52 The second model involves imposing ten restrictions, compared to the first model. Finally, if we assumed that our stochastic disturbances were free of crosssectional heteroscedasticity, we click the No Weighting button and EViews would estimate only one diagonal element instead of five: four restrictions would be imposed, compared to the second model. σ2 0 0 0 0 σ 2 0 0 0 σ 2 0 0 σ 2 0 σ2 Testing these restrictions is easily accomplished by means of a test called a likelihood ratio test. EViews output reports a statistic called the LogLikelihood. This is an estimator of the joint probability of the observed sample, given the point estimates of the parameters. As such, it is a number bounded by zero and one. All of our estimation methods aim to maximize this loglikelihood. In many applications, maximizing the loglikelihood leads to exactly the same estimator as the LeastSquares method does, but the analytical work required is heavier, so we follow the LeastSquares approach. Our interest here is in the extent to which imposing restrictions on the error covariance matrix reduces the loglikelihood statistic. ˆ If we form a ratio of the likelihood of a restricted model LR divided by the likelihood of an ˆ unrestricted model LU , we expect the ratio to be less than 1 because the maximum likelihood subject to a restriction can be no greater than the maximum likelihood of the unrestricted model. ˆ LR l = Define the likelihood ratio: ˆ . Then 0 ≤ l ≤ 1 LU If the restricted model is not significantly different from the unrestricted model we expect the likelihood ratio to be close to 1. The distribution theory of the likelihood ratio is a bit cumbersome. However, it is well known that the distribution of −2 × log(l) is asymptotically ChiSquare, so that in any application with a sufficiently large sample size we can use: Eshragh Motahar 5
 ( ( )ˆ ˆ( )) −2 × log( l) = −2 × log LR − log LU approx ~ χ q where q is the number of 2 restrictions. Under the null hypothesis we expect −2 × log(l) to be close to zero; we reject the null hypothesis if the realized value of the likelihood ratio statistic exceeds an appropriate critical value or if the pvalue of the test is smaller than the preselected significance level. Maintained Model While testing hypotheses about restrictions on the error covariance matrix, some specification of the panel data regression model must be maintained. It is recommended that the maintained model be "general" in the sense that we used that term in describing the "generaltosimple" modeling strategy. Testing Restrictions on the Panel Data Model After a sound specification for the error covariance structure has been established, tests associated with the general to simple modeling strategy may be undertaken. These tests may be the usual Wald tests or ttests on individual coefficients. Keep in mind that when the crosssection weights or SUR methods or any AR(p) specification is used, the results all asymptotically based so that the tstats are approximately standard normal and the Wald Fstats are approximately ChiSquared. Unrestricted Model The completely unrestricted model is this one: Yit = αi + β i1 X 1 i t + β i 2 X 2 i t + L + β iK X K i t + ε it In this model, the intercepts and the partial regression coefficients vary across crosssectional units. If either the noweighting or crosssectional weights option is chosen for the error covariance structure, then the results will be exactly the same as applying OLS to the data for each cross sectional unit. If the SUR option is chosen, then efficiency will be enhanced by exploiting the information contained in the crossequation error covariances. Remember that ( T > N ) is required to use this option. Partially Restricted Model In many panel data sets the timeseries dimension is quite short so it is impractical to estimate the model for which all parameters vary across crosssectional units. In this case the most Eshragh Motahar 6
 general feasible model is the fixedeffects model: only the intercepts vary across crosssectional units; the partial regression coefficients are the same for all crosssectional units. Of course, there are models in which some partial regression coefficients are identical across crosssectional units while others vary. Restricted Model The most restrictive model is the one in which the intercepts and the partial regression coefficients are identical for all crosssectional units. Testing model restrictions may be done via the Wald Coefficient test or via the likelihood ratio test. The two methods are asymptotically equivalent, though they may give different results for a particular finite sample. As you move through the generaltosimple modeling strategy it is sensible to recheck the error covariance structure as you impose restrictions on the model's partial regression coefficients and intercepts. Even though you may fail to reject the hypotheses that represent restrictions that you impose, the hypotheses may not be perfectly true, and that may affect the estimators and tests of the error covariances. [Written by Eshragh Motahar based on notes by M. D. Westbrook, and the EViews manual.] Eshragh Motahar 7
CÓ THỂ BẠN MUỐN DOWNLOAD

Excel 2007 PivotTables and PivotCharts  Wiley 2007
301 p  652  262

Excel for the CEO
368 p  395  260

Excel 2007 for Dummies
243 p  499  131

Excel FOR DUMmIES
50 p  253  48

Excel Data Analysis P1
30 p  233  48

Step by step Microsoft Excel 2010
480 p  79  37

INTRODUCTION TO STATISTICS THROUGH RESAMPLING METHODS AND MICROSOFT OFFICE EXCEL
246 p  67  29

Microsoft Access 2007 Data Analysis P1
30 p  103  24

Managing and tabulating data in Excel
0 p  70  21

Microsoft Excel and Access Integration with Office 2007 P2
20 p  68  18

Excel 2007 for Dummies Quick Reference P1
30 p  72  15

Thủ thuật Microsoft Access 2007 Data Analysis
50 p  45  11

Chapter 4: BACKING UP AND RESTORING DATA
37 p  53  5

Importing and Exporting Your Data
4 p  38  5

Microsoft Excel 2010 Tutorial
19 p  4  1

Lecture A+ Certification (3/e): Chapter 19  James Karney
38 p  8  1

Bài thực hành GIS
7 p  13  0