Miscellaneous data programs for Stata
-
capdrop
,capkeep
andcapds
correspond respectively todrop
,keep
andds
except that no error is returned when some variable is not present in the dataset (while the command still applies to variables in the dataset) -
sorder
is a wrapper forsort ; order
-
fillall
is a version offillin
that accepts multiple variables forid
(fillall
generates rows for each combination ofid1
xid2
in the original dataset)fillall, id1(var1 var2) id2(var3)
-
tsfillall
is a version oftsfill
that accepts multiple variables forid
(tsfill
generates rows for missing period within groups defined byid
)tsfillall id1 id2 time