SPSS Two Way ANOVA – Basics Tutorial

Research Question How to lose weight effectively? Do diets really work and what about exercise? In order to find out, 180 participants were assigned to one of 3 diets and one of 3 exercise levels. After two months, participants were asked how many kilos they had lost. These data -partly shown above- are in weightloss.sav. We’re […]

How to Get (Partial) Eta Squared from SPSS?

In ANOVA, we always report the F-value, degrees of freedom (df) and p for each effect -possibly just one for one-way ANOVA. P (“Sig.” in SPSS) tells us the likelihood of some effect being zero in our population. However, it doesn’t tell us how strong some effect is if it is not zero; we can’t conclude that p = 0.05 indicates a […]

SPSS Median Test for 2 Independent Medians

The median test for independent medians tests if two or more populations have equal medians on some variable. That is, we’re comparing 2(+) groups of cases on 1 variable at a time. Rating Car Commercials We’ll demonstrate the median test on adratings.sav. This file holds data on 18 respondents who rated 3 different car commercials on […]

SPSS One Sample T-Test

SPSS one-sample t-test tests if the mean of a single metric variable is equal to some hypothesized population value. The figure illustrates the basic idea. SPSS One Sample T-Test – Example A scientist from Greenpeace believes that herrings in the North Sea don’t grow as large as they used to. It’s well known that – on average – […]

SPSS Sign Test for One Median – Simple Example

A sign test for one median is often used instead of a one sample t-test when the latter’s assumptions aren’t met by the data. The most common scenario is analyzing a variable which doesn’t seem normally distributed with few (say n < 30) observations. * This tutorial shows how to run and interpret a sign test in SPSS. We’ll […]

Binomial Test – Simple Tutorial

The binomial test is the most simple statistical test there is. Understanding how it works shouldn’t be too hard and will help you understand other statistical tests more easily too. So what is it? A binomial test is a procedure for evaluating if some population proportion is x. For example, a marketeer has to make sure that 50% […]

SPSS AGGREGATE Command

Aggregate is an SPSS command for creating variables holding statistics over cases. This tutorials briefly demonstrates the most common scenarios and points out some best practices. SPSS Aggregate Command The SPSS AGGREGATE command typically works like so: One or more BREAK variables can be specified.* All cases with the same value(s) on the break variable(s) are referred to as a break group Each […]

SPSS MEANS – Statistics by Category

Summary SPSS MEANS produces tables containing means and/or other statistics for different groups of cases. These groups are defined by one or more categorical variables. If assumptions are met, MEANS can be followed up by an ANOVA. This tutorial walks through its main options, pointing out some tips and tricks. You may follow along by downloading and opening freelancers.sav. […]

SPSS DESCRIPTIVES Command

Summary SPSS DESCRIPTIVES generates a single table with descriptive statistics for one or more variables. It can also add z-scores to your data. We’ll walk through its major options using freelancers.sav. The screenshot below shows part of its data view. User Missing Values Before running any descriptives, we first need to specify some user missing values for income_2010 through […]

SPSS – Convert String into Date Variable

For converting string variables to date variables, ALTER TYPE is the way to go. This tutorial demonstrates how to do this and points out a couple of caveats. For those who can’t use ALTER TYPE, we’ll propose some alternatives. SPSS Alter Type The syntax below first creates a mini dataset holding 8 string variables. They demonstrate the 8 most common date formats. Next, […]

How to Compute Age in SPSS?

A course was evaluated by 183 students. The data are in course_evaluation.sav, part of which is shown below. The teacher wants to know the average age of his students but we only have their date of birth. 1. Ensure Date of Birth is a Date Variable The first thing we’ll do is check if date of […]

SPSS IF – A Quick Tutorial

In SPSS, IF is a conditional COMPUTE command. It calculates a (possibly new) variable but only for those cases that satisfy some condition(s). This tutorial walks you through some typical examples of the IF command. Example 1 – Replace Missing Values With the syntax below we’ll first create some test data. Next we’ll set the existing variable score […]

SPSS RECODE – Simple Tutorial

SPSS RECODE replaces data values with different values. It comes in handy for merging categories, dichotomizing continuous variables and some other tasks. This tutorial walks you through its main options, best practices and pitfalls. SPSS Recode Example 1 For quickly getting very proficient with RECODE it’s recommended you follow along with the examples. You’ll soon notice […]

SPSS ALTER TYPE – Simple Tutorial

SPSS ALTER TYPE command is mainly used for converting string variables to numeric variables. However, it has other interesting applications as well. This tutorial quickly walks you through those, pointing out some pitfalls, tips and tricks along the way. You can follow along by downloading and opening holidays.sav but you do need SPSS version 16 or higher for using ALTER […]

SPSS Missing Values Tutorial

SPSS System Missing Values SPSS User Missing Values Setting User Missing Values Inspecting Missing Values per Variable SPSS Data Analysis with Missing Values What are “Missing Values” in SPSS? In SPSS, “missing values” may refer to 2 things: System missing values are values that are completely absent from the data. They are shown as periods in data view. […]

SPSS String Variables Basics

For working proficiently with SPSS string variables , it greatly helps to understand some string basics. This tutorial explains what SPSS string variables are and demonstrates their main properties. We encourage you along by downloading and opening string_basics.sav. The syntax we use can be copy-pasted or downloaded here. SPSS String Variables – What Are They? String variables are one […]

Concatenate (General Concept)

Concatenating two or more strings is creating a new string consisting of the characters of the first string followed by the characters of the subsequent string(s) in their original order. SPSS CONCAT Function Concatenating in SPSS is done by the CONCAT function. The most basic usage is COMPUTE A = CONCAT(B,C,D). Note that you can concatenate only strings. For concatenating numbers, […]

SPSS Variable Types and Formats Tutorial

Understanding SPSS variable types and formats allows you to get things done fast and reliably. Getting a grip on types and formats is not hard if you ignore the very confusing information under variable view. This tutorial takes away the confusion and puts you back in control. We encourage you to follow along with this tutorial by downloading and opening computer_parts. […]

SPSS Binomial Test

SPSS binomial test is used for testing whether a proportion from a single dichotomous variable is equal to a presumed population value. The figure illustrates the basic idea. SPSS Binomial Test Example A biologist claims that 75% of a population of spiders consist of female spiders. With a lot of effort he collects 15 spiders, 7 of […]

Measurement Levels

Measurement levels refer to different types of variables that imply how to analyze them. Standard textbooks distinguish 4 such measurement levels or variable types. From low to high, these are nominal variables; ordinal variables; interval variables; ratio variables. The “higher” the measurement level, the more information a variable holds. The simple flowchart below shows how […]