SPSS Commands in STATA
SPSS Commands in STATA
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 command in Stata? There are
actually three similar Stata commands, generate, replace and egen). The table below
shows you five columns of information.
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.
IGRAPH graph
INCLUDE FILE do ___
LIST list
LOGISTIC
logistic
REGRESSION
LOOP forvalues
MATCH FILES merge
MEANS tabulate __, summarize(__)
MISSING
none
VALUES
MIXED xtmixed
NOMREG mlogit
PLUM ologit
PROBIT probit
RECODE recode
RECORD TYPE no equivalent
REGRESSION regress
RELIABILITY alpha
RENAME
rename
VARIABLES
SAMPLE sample
SAVE save
keep if
SELECT IF
drop if
SORT CASES sort
SPLIT FILE by
SUMMARIZE tabulate ___, summarize(___)
TEMPORARY.
xyzcommand if (___)
SELECT IF (___).
T-TEST ttest
VALUE LABELS
VARIABLE
LABELS
VARSTOCASES
WEIGHT
My comments
I have both Stata and SPSS on my computer. In my opinion, SPSS has only
two slight advantages and many, many disadvantages. The two advantages
are that it is slightly more user friendly in making complex tables and graphs
The bottom line is that SPSS doesn't do much, although it is (perhaps too)
easy to use. For example, it's useful multivariate analysis procedures are
pretty much limited to OLS, probit, and logit, with a few less useful additional
procedures avialable. SPSS does not have the multiple pooled cross sectional
time series routines that Stata has. There are no count procedures (Poisson,
negative binomial and the zero routines), and other maximum likelihood
estimators such as Tobit, multinomial logit, ordinal logit or probit, and
complementary log-log models are not readily available.
Regards
Shahzad Arain
Islamabad-Pakistan
[email protected]