iconfanye 发表于 2016-5-4 20:51
指令后直接加变量么 能具体一点么
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)