How to group values (modalities) of a List variable?

Modified on Sun, 10 Oct 2021 at 01:23 PM

Why grouping or reordering modalities of a List variable?


A List variable can contain as many possible values as you desire. These possible values are called "modalities". However, you may wish in some cases to group some values together.

Take the example of a variable named "Class of age" which can take the following values "≤ 20 years", "20 - 39 years", "40 - 59 years" and "≥ 60 years". You may want to group together patients who are aged less than 40 years and compare them to patients who are older than 40 years.

This is where grouping modalities could help you.


How to reorder modalities of a List variable?


  1. Go to "Test variables"
  2. Pick a List variable
  3. Click on the settings icon next to the name of the variable
  4. Each group is represented as a column.
  5. You can add or delete columns to create or remove groups
  6. Each line represents a modality of your List variable
  7. Match one or several modalities to each group
  8. Validate by clicking on "Confirm"


How to ignore some values for the statistical analysis?


If you want to ignore some values for the statistical analysis, this article may help you.


Create groups from a Numeric variable?


If you want to create groups from a Numeric variable, this article may help you.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article