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.