The included packages are:
exampleobs
prints (randomly selected) example observations and optionally stores the values in a local macro. This is useful to explore possible values of a variable in your data set without being biased by the ordering of the data.head
prints the head observations (first observations in data set) and mimics thehead()
function in R andhead
command in Linux.latexify
converts matrix results to LaTeX tables row by row, for more flexible table creation than available from other packages.randomselect
randomly selects observations and marks them with a dummy variable. It differs fromsample
in that it does not drop the non-selected observations from the data set, and that either individual observations or other units, defined by a variable in the data set, can be randomly selected.tail
prints the tail observations (last observations in data set) and mimics thetail()
function in R andtail
command in Linux.uniquevals
counts unique observations for a set of variables. The advantages ofuniquevals
over the popular user-writtenunique
command (Hills and Brady, 1998) are that it is faster with big data sets especially when these are already sorted, and works withby
prefix (e.g., to show number of observations by state).
These packages can be downloaded directly through Stata using ssc install <package_name>, replace
Note: uniquevals
and latexify
are not yet available directly through Stata and do not yet include help file documentation.
event_study.do
is a self-contained do file that generates an event study difference-in-differences graph.