Help with SPSS Analysis: Why Your Output Looks Different Than Expected

SPSS analysis support for your study, Easy Statistik GmbH

Is SPSS showing fewer cases than expected or producing different output than before? First, check which data are actually included in the analysis. An active filter, weighting, or missing values can change the result without causing the calculation to fail. This guide helps you systematically identify the cause.

Do you need personal support with the analysis or interpretation? On our SPSS analysis page, you will find the right range of services. For now, this is about troubleshooting your file.

Start with the analysis state

Save a working copy and back up the syntax used and the output so far. Note the case count you expect and the data version this expectation refers to. A difference is not automatically a software error: Perhaps the procedure only examines complete cases or a deliberately selected subsample.

Selecting cases

A filter excludes certain rows from analyses.

Check: Is the selection intentional and aligned with the current research question?

Weighting cases

Weights change the contribution of cases to calculations.

Check: Which variable is being used and what do its values mean?

Splitting the file

SPSS performs analyses separately by group.

Check: Is an overall result expected or are separate results desired?

Missing values

The valid case count depends on the variables included and the procedure.

Check: Which values are missing, and which values are defined as missing?

Variable types and coding

Numbers may be stored as text or categories may be misinterpreted.

Check: Do the type, values, labels, and missing values match the codebook?

Menu labels may vary depending on the language and version. The commands described here refer to the documentation for IBM SPSS Statistics 31. Also check the status bar and the settings in the "Data" menu in your file.

A small example: eight rows, but only four valid values

The following data are entirely fictional. They are used exclusively to illustrate the difference between existing rows, selected cases, and valid observations.

Example data with one missing value
ID Group Value
1 1 10
2 1 12
3 1 missing
4 1 14
5 1 16
6 2 20
7 2 22
8 2 24

Without a filter, the file contains eight cases. For the variable "value", seven values are valid and one is missing. If only Group 1 is selected, five cases remain available for analysis. Of those, four have a valid value. An output with N = 4 would therefore be understandable for this variable.

Replicating the example with syntax

Save any open work first. Run this syntax in a separate example file, not as a cleanup of your research data. NEW FILE starts a new active dataset. A period here indicates the system-defined missing numerical value.

NEW FILE.
DATA LIST FREE /id group value.
BEGIN DATA
1 1 10
2 1 12
3 1 .
4 1 14
5 1 16
6 2 20
7 2 22
8 2 24
END DATA.
FILTER OFF.
WEIGHT OFF.
SPLIT FILE OFF.
FREQUENCIES VARIABLES=value.
COMPUTE es_filter = (group = 1).
FILTER BY es_filter.
FREQUENCIES VARIABLES=value.
FILTER OFF.

The first frequency table should show seven valid values and one missing value. The second should show four valid values and one missing value for the selected group. The unselected cases are not deleted from the file by FILTER BY. The last command turns off the filter again. IBM describes this effect in the FILTER command reference.

Check filters, weighting, and file splitting specifically

A filter is not necessarily an error

A study may deliberately include only a specific subgroup. Compare the selection with the established inclusion and exclusion criteria. Do not turn off a filter simply because another result looks better. Document every professionally justified change.

Weighted case counts are not automatically additional people

The standard WEIGHT command affects how cases are included in calculations. Non-positive or missing weights can exclude cases from the corresponding analyses. The IBM documentation for WEIGHT explains the details. For complex samples, it must also be checked whether the analysis used correctly accounts for the sample design. Simply turning off weighting would not be a general solution here.

Separate outputs may come from "Split File"

If you receive multiple tables instead of one overall output, check SPLIT FILE. This state can remain active across further analyses. It explains separate group outputs without splitting the original file into multiple files. The IBM examples for SPLIT FILE also show how to reset it with SPLIT FILE OFF.

Why the case count may differ between analyses

A frequency table only requires the selected variable. A model with multiple variables, on the other hand, can exclude cases as soon as a value is missing in one of the required variables. Because of case-by-case exclusion, the model case count may therefore be smaller than the valid case count of each individual variable. Check the settings and document the actually analyzed sample.

Also check whether a valid value was accidentally defined as missing. A zero, for example, can be a real value. Conversely, a coding such as 999 for "no answer" must not go unnoticed into a mean as a measurement value.

When the data type does not fit the information

After an import, numbers may be available as text. Decimal separators, spaces, or additions such as "kg" are possible causes. Check specific cells and the variable view before recoding. Automatic conversion without checking can create new missing values or incorrectly assign categories.

Our guide Cleaning Data in SPSS explains how to prepare such steps in a traceable manner. Keep the original file and log your changes in syntax.

What kind of specific inquiry helps

  • The specific question and the expected case count.
  • The SPSS version used and the exact analysis command.
  • The relevant output with understandable variable names.
  • Information about filters, weights, file splitting, and missing values.
  • A small anonymous example, if the problem can be illustrated with it.

For an initial inquiry, you do not need to send personal raw data. First, describe where the output deviates from your expectation. We will clarify the appropriate next step personally. Learn about support for SPSS analysis or request your project free of charge.


Put knowledge into practice

From explanation
to your own analysis.

Would you like to know which method suits your project? We review your plans free of charge and give you a clear recommendation.

Your question deserves a personal answer.

Describe your project. We will assess free of charge what support would be right for you.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.