xingshiqi 发表于 2012-4-4 16:47 
谢谢  我是想知道为什么做xtcd检验之前要先运行下xtreg?
 xtcd implements the Pesaran (2004) CD test for cross-section dependence in panel time-series data.  The routine performs the same CD test as the xtcsd varname, pesaran command by De Hoyos and Sarafidis (2006) but (i) allows for multiple variable series to be tested at the same time and (ii)
 is not a post-estimation command: xtcd can be applied to variable series (e.g. pre-estimation analysis of
    cross-section dependence in the data) as well as to residuals