本人刚刚会的,不确定此方法是否适用于所有的stata版本:
如果输入ssc install xtabond2显示没有安装成功的话,可以通过findit命令需找相关程序的网站,
:具体步骤是
首先,输入findit xtabond2,stata软件会显示此界面:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
search for xtabond2 (manual: [R] search)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Keywords: xtabond2
Search: (1) Official help files, FAQs, Examples, SJs, and STBs
(2) Web resources from Stata and from other users
Search of official help files, FAQs, Examples, SJs, and STBs
SJ-12-4 st0159_1 . . . . . . . . . . . . . . . . Software update for xtabond2
(help xtabond2 if installed) . . . . . . . . . . . . . . . D. Roodman
Q4/12 SJ 12(4):766--767
bug fixes and added features such as support for factor
variables
SJ-9-1 st0159 . . How to do xtabond2: An intro. to difference and system GMM
(help xtabond2 if installed) . . . . . . . . . . . . . . . D. Roodman
Q1/09 SJ 9(1):86--136
introduces linear GMM; describes how limited time span
and potential for fixed effects and endogenous regressors
drive the design of estimators; shows how to apply
difference and system GMM estimators with xtabond2
Web resources from Stata and other users
(contacting http://www.stata.com)
4 packages found (Stata Journal and STB listed first)
-----------------------------------------------------
st0159_1 from http://www.stata-journal.com/software/sj12-4
SJ12-4 st0159_1. Update: 'XTABOND2': module to... / Update: 'XTABOND2':
module to extend xtabond / dynamic panel data estimator / by David
Roodman, Center for Global Development / Support: DRoodman@CGDEV.ORG /
After installation, type help xtabond2 and / abar
st0159 from http://www.stata-journal.com/software/sj9-1
SJ9-1 st0159. How to do xtabond2: An introduction to difference and ... /
How to do xtabond2: An introduction to difference and system GMM in Stata
/ by David Roodman, Center for Global Development / Support:
DRoodman@CGDEV.ORG / After installation, type help xtabond2
weakiv from http://fmwww.bc.edu/RePEc/bocode/w
'WEAKIV': module to perform weak-instrument-robust tests and confidence
intervals for instrumental-variable (IV) estimation of linear, probit and
tobit models / weakiv calculates weak-instrument-robust tests of the /
coefficients on the endogenous regressors in instrumental / variables (IV)
xtabond2 from http://fmwww.bc.edu/RePEc/bocode/x
'XTABOND2': module to extend xtabond dynamic panel data estimator /
xtabond2 can fit two closely related dynamic panel data / models. The
first is the Arellano-Bond (1991) estimator, which / is also available
with xtabond without the two-step / finite-sample correction described
3 references found in tables of contents
----------------------------------------
http://www.stata-journal.com/software/sj12-4/
Stata Journal volume 12, issue 4 / Update: Importing financial data / HTML
output in Stata / Graphical augmentations to the funnel plot to / assess
the impact of a new study on an existing / meta-analysis / Update: A
programmer's command to build / formatted statistical tables / Update:
http://www.stata-journal.com/software/sj9-1/
Stata Journal volume 9, issue 1 / Row rank and sort a set of variables /
Update: Cumulative meta-analysis, with graphics / Update: GLS for trend
estimation of summarized / dose-response data / Update: Fit a linear model
with two high-dimensional / fixed effects / Estimation and comparison of
http://digital.cgdev.org/doc/stata/DR/
Center for Global Development / Welcome to {browse
"http://www.cgdev.org/content/expert/detail/2719/":David Roodman}'s page
at the CGD Stata Repository. / / {net "describe xtabond2,
from(http://fmwww.bc.edu/RePEc/bocode/x)":xtabond2()} : Difference and
(click here to return to the previous screen)
(end of search)
其次,从中随便找个网站,直接点击:
以“st0159 from http://www.stata-journal.com/software/sj9-1”(见上文)为例
会出现以下界面:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
package st0159 from http://www.stata-journal.com/software/sj9-1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TITLE
SJ9-1 st0159. How to do xtabond2: An introduction to difference and ...
DESCRIPTION/AUTHOR(S)
How to do xtabond2: An introduction to difference and system GMM in Stata
by David Roodman, Center for Global Development
Support: DRoodman@CGDEV.ORG
After installation, type help xtabond2
INSTALLATION FILES (click here to install)
st0159/xtabond2.ado
st0159/xtabond2.mata
st0159/xtabond2.hlp
st0159/xtab2_p.ado
st0159/lxtabond2.mlib
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
点击“(click here to install)”,待界面运行结束后,输入ssc install xtabond2, replace,即可完成安装。
我不太确定是否每个stata的版本都适用此办法,本人也是刚刚学,有什么不对的,希望大家指点
