-xtbalance-命令已经发布到了stata官方网站,可以通过如下命令查询和下载了:
(多谢 Boston College 的 K. Baum 教授代为发布 )
[2008.08.23]
更新说明:此前发布的xtbalance命令存在一些bug,现已修订,且运行速度提高了10倍。
详细范例参见 第16楼。
帮助文件:
---------------------------------------------------------------
help for xtbalance version 2.01
---------------------------------------------------------------
Trans the dataset into balance Panel Data
xtbalance, range(numlist) [ miss(varlist) ]
You must tsset your data before using xtbalance; see help tsset.
Description
xtbalance Trans the unbalanced Panel Data into balanced Panel Data with sample range specified by option range.
Options
range(numlist) specifies sample range to be transfored. numlist must be two integers and specified in ascending order.
miss(varlist) forces to drop the observations if any one of the variable in varlist has missing value.
Examples
. help xtbalance
. xtbalance , range(1998 2005)
. xtbalance , range(1998 2005) miss(invest market)
. xtbalance , rang(1978 1982) miss(_all)
For problems and suggestions
Author: Yujun,Lian (Arlion) Department of Finance, Lingnan College, Sun Yat-Sen University.
E-mail: arlionn@163.com.
Blog: http://blog.cnfol.com/arlion.
Stata现场培训-初级班【New, 四天,北京】http://www.peixun.net/view/307_detail.html
Stata现场培训-高级班【New, 四天,北京】http://www.peixun.net/view/308_detail.html