IMPORT DATA FROM SPSS
Let’s see it work
We want to use the General Social Survey (GSS) for 2018, which we have in SPSS (.sav) format. The GSS gathers demographic and socioeconomic information about individuals and also records their perceptions about social, cultural, and economic issues.
The dataset we are interested in is GSS2018.sav. To bring it into Stata, we open the dialog box by clicking on File > Import > SPSS data (*.sav). We select the GSS2018.sav dataset and get
After clicking OK, our data are in Stata and are ready for us to analyze.
As always, we could have used the command line instead of the dialog box. Here is what we would have typed:
. import spss CONARMY CONBIZ CONCONG CONCOURT using GSS2018, case(lower)
We can now import all the data or only a subset.
In this case, we are interested in data about people’s confidence in different institutions. We would like to see confidence in the military (CONARMY), business and industry (CONBIZ), Congress (CONCONG), and the courts and legal system (CONCOURT).
Note that the variables have uppercase names in this SPSS file. We want all of them to be in lowercase. Under Variable case:, we select the option Lower.
Now we have