DataTile Knowledge Base

Cluster Analysis in DataTile

What is cluster analysis

Cluster analysis groups respondents who answer alike into segments. In DataTile, it runs as four guided steps: choose the variables, combine related variables into factors, find the clusters, and save them as a variable for tables, charts and filters.

The groups are not defined in advance. You choose the questions that should tell people apart, and the analysis finds the groups that exist in the answers. The result is a new single-choice variable with one category per segment.

How it is used in market research

  • Attitudinal or needs-based segmentation from rating scales.

  • Behavioural segmentation from usage questions: which brands, channels or products people use.

  • Media and lifestyle typologies.

  • Targeting: profile each segment by demographics, then size it.

  • A segment variable that the whole team can use as a banner in tables.

This guide has three parts:

How the module works

Step

You decide

DataTile computes

1. Variables

Which variables to segment on, which respondents (filter), and which weight

How many respondents can be used, and how each variable enters the analysis

2. Factors

How many factors to keep, and their names

Factors by principal components with varimax rotation, with KMO and Bartlett's test

3. Clusters

How many clusters to keep, and their names and colours

K-means clusters for every number from 2 to 20, their quality, and a recommended number

4. Save segment

Whether to save the segments for yourself, publish them to the project, or export a report

A list of open checks, a single-choice variable, an Excel workbook

The same analysis on the same data gives the same segments every time: nothing in the calculation is random between runs.

Before you start

Which variables can be used

Numeric, single-choice and multiple-response variables can be used, up to 24 per analysis. The type of a variable decides how it enters. Step 1 shows this for every variable in the columns Type and Enters as.

Type on step 1

Typical question

Enters as

What goes into the analysis

Numeric

Age in years, number of visits, amount spent

Factors, 1 column

The value

Single choice, scored

A rating scale: agreement, satisfaction, frequency

Factors, 1 column

The code of the chosen category, as a score

Multiple response

"Which of these do you use?"

Factors, 1 column per category in use

Chosen or not, for each category

Multiple response, scored

A multiple-response scale

Factors, 1 column

The mean score of the chosen categories

Single choice

Region, gender, brand used most often

Directly, 1 column per category in use

Chosen or not, for each category. The variable skips the factor step and counts as much as one factor in the clusters.

Make rating scales scored

A rating scale imported as an ordinary single-choice variable has no scores, so it would enter directly, one column per answer. To use it as a scale, set its measure to Ordinal:

  1. Open the project's settings (the gear icon) and stay on the Meta-Editor tab.

  2. Click the type icon to the left of the variable's name.

  3. Choose Ordinal.

The type menu of a variable in the Meta-Editor with the options Nominal, Ordinal and Categorical to numeric
The type menu in the Meta-Editor

The score of an answer is the code of its category, shown under the category's name in the Meta-Editor. Check that the codes run in the order of the scale, and note which end is high: with "Strongly agree" coded 1, a low score means agreement.

Weight

If the project has weights, the analysis can use one. A numeric variable becomes a weight in the same type menu, with Weight factor. Manual weights are not used by the module.

The example in this guide

The screenshots use Ofcom's Adults' Media Literacy Tracker 2025, a survey of 7,533 UK adults aged 16 and over. The analysis is called "Social media tribes". It segments social media users by the apps and sites they use, from one multiple-response question with 12 apps (WhatsApp, Facebook, TikTok, Instagram, Snapchat, X, Reddit, Discord, Pinterest, Telegram, LinkedIn, Threads).

Source: Ofcom, Adults' Media Literacy Tracker 2025. © Ofcom 2026. Licensed under the Open Government Licence v3.0. Analysis: DataTile, based on Ofcom data. The segments and their names are DataTile's illustration, not Ofcom's findings.

Open the module

  1. Open the project and any crosstab tab.

  2. Click the Clusters button in the tab's toolbar. The Cluster analysis panel opens with the analyses of this database.

  3. Click + to create an analysis, or click an existing one to open it.

  4. Give the analysis a name: double-click the name at the top of the page. The saved variable takes this name.

A project page with the Cluster analyzes panel open on the right, listing one analysis and a plus button
The Cluster analysis panel of a project

An analysis opens on step 1. The four steps are listed at the top of the page. Each step shows its result once it is known, and a mark: a green tick when it is done, an amber mark when it needs attention, a red mark when it cannot be calculated.

Step 1. Variables

Choose what to segment on and who is included. Everything after this step is computed from these choices.

03-step1-empty.jpg
Step 1 of a new analysis

Add the variables

  • Drag variables from the project variables panel on the left into Variables to segment on. Use the search field to find them.

  • Drag a folder to add all its variables at once.

  • Remove a variable with the cross at the end of its row, or select rows and click Remove.

Each row shows the variable's type, how it enters, how many of its categories are in use, and its Valid N: the respondents in the filter with a usable answer. An amber mark beside Valid N means that under 90% of the respondents in the filter have one.

Choose the respondents

  • Filter. Click the filter field, or drop a variable on it, then keep the categories you want in the expression builder. In the example, the filter is "Social media app or site usage: Yes", which leaves 6,297 respondents.

  • Weight. Click the weight button to switch the weight on or off. When the project has several weights, the arrow beside it lists them.

The line at the top of the block says how many respondents are used. A respondent is used when they are in the filter, have a usable answer to every selected variable and, with a weight, a usable weight. In the example, 6,246 of 6,297 are used.

Step 1 with one multiple-response variable, a filter, a weight, and 6,246 of 6,297 respondents used
Step 1 of the example: one multiple-response variable, a filter and a weight

Choose the categories

Click a row to open its categories, each with its number of respondents. Untick the categories that should not take part.

  • In a multiple-response variable, an answer not in use is ignored. A respondent is left out only when none of their answers is in use.

  • In a single-choice variable, a respondent who gave an answer not in use is left out, like a missing answer.

In the example, the question has 17 categories. The five that are not apps are unticked: "None of these", "Don't know" and three summary categories. This matters: summary categories repeat the information of the others, and with them in use, the factors cannot be tested and the clusters separate users from non-users instead of finding types of users.

05-step1-categories.jpg
The categories of a variable: 12 of 17 in use

Click Continue to Factors.

Step 2. Factors

Variables that move together are combined into a few factors, so that one topic asked five times does not count five times in the clusters. On this step you decide how many factors to keep, and you name them.

06-step2-factors.jpg
Step 2: the number of factors with its evidence

Decide the number of factors

  • Number of factors. Use minus, plus, or type a number. The range is shown beside the field.

  • Suggested. DataTile suggests the number of factors with an eigenvalue above 1. When you use another number, a button offers the suggestion again.

  • Scree plot. Each point is a possible factor. Click a point to keep the factors up to it.

Three tiles summarise the solution:

Tile

What it says

What is needed

Sampling adequacy (KMO)

Whether the variables share enough variance for factors

0.5 or above

Bartlett's test

Whether the variables are related at all

p below 0.05

Variance explained

The share of the variables' variance that the kept factors keep

No threshold

The line under the tiles records the settings: extraction, rotation, how missing answers are treated, the weight, and the respondents used.

In the example, three factors have an eigenvalue above 1 (3.25, 1.25 and 1.13). KMO is 0.83, Bartlett's test gives p below 0.001, and the three factors keep 46.9% of the variance.

Name the factors

Your factors lists each kept factor with the variables whose largest loading is on it. Type a name in the field of each factor. The names appear on the map, in the cluster centres and in the report.

The scree plot with three kept factors, and the three named factors with their variables and loadings
The scree plot and the named factors

In the example the 12 apps fall into three groups:

Factor

Apps that load highest

Name given

F1

Reddit, Discord, X/Twitter, LinkedIn, Telegram, Threads

Discussion networks

F2

Snapchat, TikTok, Instagram, Pinterest

Visual apps

F3

Facebook/Messenger, WhatsApp

Everyday messaging

Read the loadings

Rotated factor loadings show how strongly each variable goes with each factor, from −1 to 1. The bold value is the factor a variable belongs to most. Blue is positive, orange is negative, and deeper colours indicate stronger loadings.

  • Hide loadings below hides small loadings so the pattern stands out. It changes the display only.

  • Group by factor, largest first sorts the rows by factor.

08-step2-loadings.jpg
Rotated factor loadings

Statistical details, under the loadings, opens the eigenvalue of every factor and KMO and Bartlett's test in full.

09-step2-details.png
Statistical details

Click Continue to Clusters.

When every selected variable is a single-choice variable without scores, there is nothing to combine: step 2 says that every variable enters the clusters directly, and you continue to step 3.

Step 3. Clusters

Respondents with similar answers are grouped into clusters. In this step, you choose how many clusters to keep, read what sets each one apart, and name it.

Choose the number of clusters

DataTile computes the clusters for every number from 2 to 20 and measures each solution. The chart shows one bar per number: the higher the bar, the clearer the clusters.

10-step3-quality.png
Step 3: the quality of every number of clusters
  • Number of clusters. Use minus, plus, type a number from 2 to 20, or click a bar.

  • Recommended. Among the numbers whose smallest cluster holds at least 5% of the respondents, DataTile recommends the one with the highest silhouette, provided it reaches 0.25. The text under the control says why.

  • The chart. The blue bar is the number in use, the triangle marks the recommendation, and a dashed bar has a cluster under 5%. Below the line at 0.25 there is no clear structure.

Tile

What it says

What is needed

Silhouette

How much closer respondents are to their own cluster than to the nearest other, from −1 to 1

0.25 or above

Smallest cluster

The share and the number of respondents in the smallest cluster

5% or above

Explained variance

The share of the total variance that lies between the clusters. It always grows with more clusters.

No threshold

All measures by number of clusters open the three measures for every number tested.

In the example, 7 clusters are recommended, with a silhouette of 0.38. Solutions with 8 or more clusters score slightly higher, but each has a cluster under 5%, so they are not recommended.

Read the profiles

Profiles is the default view. It has a row per variable and a column per cluster beside the total. The variables on which the clusters differ most come first. Read a cluster's values against the total to describe it.

11-step3-profiles-average.png
Profiles under Average: the percent of each cluster that uses each app

Choose the metric above the table:

Metric

What a cell shows

Average

The mean of the variable in the cluster. For a category, the percent of respondents who chose it.

Index

The cluster mean as a percent of the total mean. 100 is the total.

Standardized score

How far the cluster mean is from the total mean, in standard deviations. 0 is the total.

Standard deviation

How much the respondents of the cluster differ among themselves on the variable.

Two columns help you choose where to look. η² (eta squared) is the share of the variable's variance that lies between the clusters, from 0% to 100%. Rank orders the variables by it. Under Index and Standardised score, the cells are shaded: blue above the total, orange below.

The profile table under the Index metric with blue shading above the total and orange shading below it
Profiles under Index: shading marks what each cluster does more or less than the total

Name the clusters

The cluster list stays beside both views. Clusters are ordered by size, largest first.

  • Type a name in a cluster's field while its profile is on screen.

  • Click the colour square to choose another colour.

  • The eye hides a cluster from the map only. It stays in the analysis and in the saved variable.

The seven clusters of the example:

Name given

Share

What sets it apart

Friends and family

29.4%

Nearly all use Facebook and WhatsApp, and little else

Light users

19.6%

Below the total on every app. 55% use WhatsApp and 48% use Facebook.

All-rounders

17.8%

Facebook and WhatsApp plus TikTok, Instagram and Snapchat. Almost no Reddit or Discord.

Visual natives

11.7%

TikTok, Instagram and Snapchat. Only 27% use Facebook.

Connected professionals

11.0%

The mainstream apps plus X, LinkedIn and Telegram

On every platform

5.3%

High on all 12 apps

Reddit and Discord crowd

5.2%

Reddit and Discord, with Facebook used by only a third

With a weight, the cluster sizes are weighted counts, while "respondents used" counts people. In the example the seven sizes add up to 6,185, and 6,246 respondents are used.

Look at the map

The map places every respondent by two factors. A cross marks a cluster's centre. With three or more factors, choose the two axes with Across and Up, or swap them. Cluster centres, beside the map, gives the mean factor score of each cluster: above 0 the cluster lies above the sample mean of the factor, below 0 under it.

13-step3-map.png
The map and the cluster centres

Clusters that overlap on the map may still differ on a factor that is not on its axes. The map needs at least two factors.

The download icon above the silhouette chart, the scree plot and the map saves the chart as a PNG or SVG image with its title and legend.

Click Continue to Save segment.

Step 4. Save segment

This step turns the clusters into a variable. It has three outputs:

Block

What it creates

Who sees it

My variable

A single-choice variable with one category per cluster, in the top folder of the project's variables

Only you. A safe place to try the segments in your own tables.

Project variable

The same variable, published to the project

Everyone who works in the project. The block is shown to users who may publish.

Report

An Excel workbook that documents the whole analysis

Whoever you send it to

14-step4-saved.png
Step 4 after saving the segments as My variable

Read the open checks first

When something in the analysis deserves a second look, step 4 opens with a list titled Before you save. Each check names the step it comes from and links to it. Nothing in the list blocks saving. The example has no open check, so the list is absent. Reading the results and best practice explains each check.

Save or publish

  • Click Save as my variable or Publish to project. A message confirms the name and the place.

  • The variable takes the name of the analysis at the first save. Renaming the analysis later does not rename the variable: rename it in the project's variables.

  • Respondents who were left out of the analysis are in no category of the variable.

  • When the clusters or the data change after saving, the block reads Out of date. Click Update my variable or Update project variable to save the current clusters.

Check the segments against other questions

The crosstab under the three blocks is a normal DataTile crosstab. The clusters are in the Clusters tab of its side panel. Drag them into the columns, drag any project variable into the rows, and click Calculate.

A crosstab with the seven segments in the columns and age groups in the rows, in vertical percent
The segments by age group

In the example age was not used to build the segments, yet they differ sharply by it. 52% of Visual natives are aged 16 to 24, against 2% of Friends and family, where half are 55 or older. A segmentation that separates people on questions it never saw is a good sign.

Export the report

Export to Excel downloads a workbook with these sheets:

Sheet

Content

Settings

Analysis, database, filter, weight, missing values, respondents in the filter and used, extraction and rotation, number of factors and clusters, seed, and the variables with their type, valid N, excluded categories and role

Factors

Every factor with its eigenvalue and variance explained

Loadings

The rotated factor loadings

Clusters

Cluster names, sizes and centres

Average, Standard deviation, Standardized score, Index

The four profile tables

Quality

Silhouette, explained variance and smallest cluster for every number of clusters, with the recommendation and its rule

Changing an analysis later

You can return to any step from the list at the top. A change on a step recomputes the steps after it.

  • Changing the variables, their categories or the filter changes the factors and the clusters. The number of clusters is chosen again.

  • Changing the number of factors or clusters changes the clusters. When you have named, coloured or hidden clusters, DataTile asks first, because these are reset.

  • Factor names stay with their factor as long as its highest-loading variable is the same.

  • Renaming a factor, a cluster or the analysis recomputes nothing.

Limits

Item

Limit

Variables per analysis

24 by default (a server setting)

Columns in the factor step

300, counting each category in use of a multiple-response variable as one

Number of clusters

2 to 20, and fewer than the number of respondents used

Cluster name

80 characters

Missing answers

Listwise: a respondent without a usable answer to every selected variable is left out