Here is briefly annotated example to use as guidance.
----
subtitle "Create data with missing values for example".
data list free /w x y z (4F1).
begin data.
1 1 0 .
2 1 1 3
3 2 0 2
4 2 1 1
1 3 0 2
2 3 1 1
3 4 0 3
4 5 1 2
end data.
recode z (SYSMIS=4).
missing values x (5) z (4) w (3).
** Notice that I had a system-missing value for z, so I had to
** recode it to an "out-of-range" value (4), then set that to
** missing using the MISSING VALUES command.
subtitle "Make sure I know the ranges of each variable I want in CROSSTABS".
DESCRIPTIVES VARIABLES=w x y z /STATISTICS MIN MAX.
** Now I know the ranges of all the variables I want to use in CROSSTABS.
** That will be used in the VARIABLES subcmd of CROSSTABS.
subtitle "Run CROSSTABS".
* In VARIABLES, you add the range of each variable (or a series of variables that
* share the same range).
* In TABLES, you set up whatever crosstabulations you want.
* MISSING=REPORT gives you the counts of missing data in the table.
CROSSTABS VARIABLES x (1,5) y (0,1) w z (1,4)
/TABLES=x by z /y by z /x by y /w by x y z
/MISSING=REPORT.
----
I hope that helps.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------
Original Message:
Sent: Tue October 25, 2022 12:25 PM
From: Jeffrey Broadbent
Subject: in analyze>descriptive statistics>cross tabs how do I display the values of missing values?
Hi Rick, Thanks much for your response. I'm not skilled enough to know how to use your suggested command line. I am using a big dataset with about 20,000 cases (survey responses from different countries). Sorry to ask for elementary guidance, but how do I modify your suggested command line and where do I enter it in SPSS? thanks much. Jeff
Jeffrey Broadbent
Professor Emeritus,
Department of Sociology
Fellow, Institute on the Environment
University of Minnesota
Original Message:
Sent: 10/25/2022 11:59:00 AM
From: Rick Marcantonio
Subject: RE: in analyze>descriptive statistics>cross tabs how do I display the values of missing values?
Hi. Maybe something like this:
data list free /x y (2F1).begin data.1 22 23 21 32 31 22 33 43 42 31 42 53 22 11 1end data.CROSSTABS VARIABLES=x y (1,4) /TABLES=x BY y /MISSING=REPORT /WRITE=NONE.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
Original Message:
Sent: Mon October 24, 2022 06:39 PM
From: Jeffrey Broadbent
Subject: in analyze>descriptive statistics>cross tabs how do I display the values of missing values?
in analyze>descriptive statistics>cross tabs how do I display the values of missing values? When I run this, I just get the regular values, but I also want to see how many or percent of different missing values of different types for each case.
------------------------------
Jeffrey Broadbent
------------------------------
#SPSSStatistics