Themistra
Themistra
Guide

Randomize and counterbalance your study

For a study with blocks or conditions that should come in a different order for each participant. You will group the questions into folders, shuffle inside them, pin what must stay put, let the blocks swap places in a counterbalanced order, counterbalance a choice list, and check the balance in Results.

You need a study with its questions in the builder. The steps use the folder controls in the question list. What each feature covers in general is on Flow & randomization.

  1. 1

    Put each block or condition in a folder

    In the builder, press the Folder button at the bottom of the question list, next to Question (its tooltip reads Add folder), then type a name such as “Block A”. Folder names are for you; participants never see them.

    There are three ways to fill a folder:

    • Press Add question at the bottom of the folder and pick a question type. The question is created inside the folder. With Group questions into pages on, it is added to the folder's last page.
    • Drag an existing question onto the folder's row, and it goes to the end of the folder.
    • Tick the checkbox that appears when you hover over a question, then press the Move to folder icon in the bar above the list that shows how many are selected, and pick a folder (or New folder). Each question's own menu has Move to folder too. With pages on, a page that moves whole stays whole.

    Questions that stay outside every folder are not shuffled and not moved. That is where consent and demographics go.

  2. 2

    Shuffle what is inside a folder

    Open the folder's options (the three dots on its row), choose Folder settings, and look at Shuffle. It is Off until you choose.

    The choices depend on the Group questions into pages switch above the question list:

    • Pages off: Shuffle questions. The folder's questions change order, one question per screen.
    • Pages on: Shuffle pages moves whole pages around and keeps the questions on each page together. Shuffle questions within each page keeps every question on its own page and shuffles the order inside it.

    If you pick Shuffle pages for a folder that holds one page, the settings tell you there is nothing to shuffle. Add a page to the folder, or shuffle the questions within the page.

  3. 3

    Keep intro and closing questions in place

    In a folder that shuffles, select a question and click Pin in place at the top of its editor. A pinned question stays where it is and the rest of the folder shuffles around it. Use it for instructions and a practice item at the start of a block, or ratings that close it. Pinned questions show a pin in the question list.

    Pin as many as you need from the start and from the end, one after another: the first question, then the second, and so on, or the last, then the one before it. A question in the middle can be pinned once the questions between it and the start or end are. Unpinning a question also unpins the ones further in from it. If you move a question so a pinned one no longer sits in that run, its pin comes off and the builder tells you.

    Pins work in surveys without pages. With pages on, the folder shuffles as if nothing were pinned. You need at least two questions left to shuffle: if the pins leave fewer, the folder settings say there is nothing left to shuffle.

  4. 4

    Make blocks swap places

    Shuffling inside a folder does not move the folder. To randomize the order of the blocks themselves, open Folder settings for each block and tick Swap places with other folders. A folder with it on shows a swap icon on its row.

    • The flagged folders trade places with each other. Each one moves as a whole, with its questions in its own order (shuffled, if you set that, and with its pinned questions still in place).
    • The order is balanced: across submitted responses, every order of the flagged folders comes up equally often. With two folders, half the participants get A then B and half B then A; with three, each of the six orders comes up as often. The settings say: “Each order is shown equally often across participants.”
    • Loose questions and folders without the checkbox stay put. A consent question above the blocks stays first; demographics below them stay last. Anything between two swapping folders stays between them.
    • It does not need a shuffle inside the folder, and the two combine: the blocks swap, then each block shuffles inside.
    • Turn it on for at least two folders. If only one folder has it, the settings say: “Turn this on for at least one more folder; folders only swap with each other.”
    A folder's settings in the builder: its name, an internal note, Shuffle set to Shuffle questions, and Swap places with other folders turned on
    A folder's settings: Shuffle, and Swap places with other folders.
  5. 5

    Counterbalance the order of choices

    The choices of a multiple choice question can be counterbalanced too, through a team choice list. Open Choice lists in the sidebar, press New list, add the choices, and turn on Shuffle choices, then Balance choices. Then, in the question, press Use a list from the library and pick the list.

    • Within the survey, every order of the list's choices is shown equally often across responses. Balancing works for lists of up to 7 choices.
    • A participant sees the same order in every question that uses the list. Choices typed into a question can shuffle, but only at random.
    • The order each participant saw is in each question's choice_order column in the answers file.
  6. 6

    An example: three blocks between consent and demographics

    With Group questions into pages off, build the study in this order:

    1. A consent question, outside any folder.
    2. Press Folder and name it “Block A”. Inside it, press Add question and add the block's instructions first: choose Instructions as the item type and type the text: it only shows that text (with its line breaks) and takes no answer. Then add the block's trial questions.
    3. In Folder settings choose Shuffle questions and tick Swap places with other folders. Then select the instructions and click Pin in place.
    4. Repeat for “Block B” and “Block C”.
    5. The demographics questions, outside any folder, below the folders.

    Each participant sees consent, then A, B and C in one of their six orders, each order equally often across participants, then demographics. Every block opens with its own instructions, and the trials inside it come in a random order. Give each block at least two trials, so that two are left to shuffle after the instructions are pinned.

  7. 7

    Check your logic

    Jump logic only goes forward: a jump to an earlier question, or to a question on the same page, is ignored. When blocks swap places, a jump from one block to another points forward for some participants and backwards for others, and for the others it does not happen. The jump editor warns you: “These folders swap places, so for some participants this jump points backwards and won't happen.” It also warns when a jump is inside a shuffled folder and the target may come first.

    Display logic has the same problem. A condition on a question that may come later leaves this question hidden; the builder warns about that too. Safer patterns: base conditions on questions that come before the blocks, such as consent or a screening question (an Instructions item, like the blocks' pinned instructions here, can't be a condition), and make jumps from before the blocks, for example from consent to the end of the survey.

  8. 8

    Test it in preview

    In your survey list, open the survey's menu and choose Preview. It opens in a new tab and draws an order the way a participant would get one. Folders that shuffle or swap show a numbered badge next to their questions in the preview's question list, so you can follow which questions belong together.

    • The order comes from a seed tied to that session, so it holds while you go Back and Next. A fresh session gets its own order: reload the preview and look again. Do it several times to see the range.
    • Check that pinned questions are where you put them, and that consent and demographics did not move.
    • Preview answers are kept out of your results, so the order columns below fill from real responses, not from preview. The download buttons stay greyed out until the first real response arrives.
  9. 9

    Check the order in your data

    Open Results, pick the survey, and download the files.

    • shown_order: in both Download answers (CSV) and Download timing (CSV), each question gets a column ending in - shown_order. It holds that participant's position for the question, among the answers stored for them. It appears when a folder shuffles or two or more folders swap places.
    • folder_order: in the timing file, one column with the swapping folders' names in the order that participant saw them, separated by |, for example Block C|Block A|Block B. It appears only when two or more folders swap places.

    The timing file is part of the Professional plan; during the beta it is free on every plan (the button shows “Pro · Free in Beta”). The answers file is on every plan, and its shown_order columns are enough to work out the block order.

    To see whether the balance held without downloading anything, the survey's Results show Folder order balance and Choice order balance: how many responses got each order, how often each folder or choice came in each position, and whether it is even.

    In the files, count the values of folder_order to see how many participants got each order. Every column is described in What's in your data, and Timing explains the timing file.

    The Folder order balance card in Results: the 6 orders of three folders, each shown 2 times across 12 responses, marked Even
    Folder order balance in Results: with three folders, each of the 6 orders came up twice.

What this does not do

  • Folder order is balanced over every possible order (all orders equally often), not a Latin square, and for up to 7 swapping folders; with more, it is random. A participant whose order couldn't be fetched gets a random one. Check the counts in Results or in folder_order. The order inside a folder is random, and so are typed choices.
  • folder_order is in the timing file, which is a Professional feature (free on every plan during the beta). On the answers file alone, work the block order out from shown_order.
  • A folder has one shuffle mode: off, pages, or questions within each page. You cannot combine two.
  • Pins run one after another from the start or the end of a folder: a question in the middle can't be pinned on its own, and pins don't work with pages.
  • Swapping moves whole folders. Questions from different blocks cannot be interleaved.
  • The order lasts for the whole session, and a reload of the page keeps it. A new participant gets a new order.

Set it up on your own study

Then run it in preview a few times before anyone takes it. The data side: What's in your data.