How do I do this SPSS command in Stata? | Stata FAQ

Say that you use SPSS but wish to know how to do a particular command in
Stata. For example, you want to make a new variable and know you can use the compute command to
create a new variable in SPSS, but what is the equivalent (or similar) command
in Stata? (By the way, there are actually three similar Stata commands,
generate, replace and egen). The table below shows you five
columns of information.

SPSS commands, listed in alphabetical order

The equivalent (or
similar) Stata command(s)

Links to UCLA web pages that
illustrate the use of the Stata command

Cross references to the Stata manual for learning more about the command
(which is also hot
linked to the online help for the command)

Cross references to books that illustrate more about the command.

This table is by no means complete, and it not intended to
be a complete and exhaustive reference. Instead, it is intended to be a short,
simple, sweet and handy reference for SPSS users who are making the transition
to Stata. We also highly recommend
A Sample Stata Session
(via the Stata web site) which gives you a quick overview of using Stata as well
as seeing the [GS] Getting Started manual that accompanied your purchase of
Stata.