xtbalance2 creates an indicator variable to identify a balanced subsample from an unbalanced dataset. The program tries to maximise the numbers of observations with respect to either the time dimension of the number of cross-sections/groups.
Example:
Code:
use http://www.stata-journal.com/software/sj12-1/st0246/manu_prod, clear xtbalance2 , generate(balanceN) optimisation(N) xtbalance2 lO lL lY, generate(balanceT) optimisation(T)
How to install:
xtbalance2 can be installed via SSC
Code:
ssc install xtbalance2
Code:
net from https://github.com/JanDitzen/xtbalance2
Thanks!
0 Response to New package: xtbalance2 - Create a balanced subsample from unbalanced panel data.
Post a Comment