Skip to Main Content

Stata Code Fragments


Stata Code Fragments

These pages contain Stata commands and Stata programs with a minimum of
documentation or explanation.  These pages often reflect samples that we have created
in solving a problem for someone during consulting.  If we do not have time to make a
proper FAQ or Learning Module, we place the example program here so it may be publicly
available until we have time to make a proper FAQ page or Learning Module page. 
Until then, we hope that these example may prove useful to some of you. If you are
not sure if you are properly using any of these code fragments (and you are a member of
the UCLA research community) please use our consulting services so we may
help you properly use these examples.  Many of these examples are tricky and
complicated, so if you are in doubt, please let us assist you.

Graphics

Data management

Miscellaneous commands