Survey design

Driving question: How do you turn a causal question into a questionnaire that can answer it?

In Chapters 2 to 6, somebody else had collected the data: you received a file and analyzed it. In the group project, the direction is reversed — you produce the data. This changes the price of a mistake. A wrong line of R code is corrected in a minute. A moderator that was asked after the stimulus, a randomizer that showed both versions to everyone, or an outcome that hardly varies cannot be repaired once 120 people have answered. Analysis problems can be solved in January; design problems have to be solved now.

This page is the manual for Part 1 of the group project: a between-subjects experiment with two conditions, one moderator, and one mediator, built into a questionnaire in Qualtrics. It is organized as seven steps (Table 1), and one example study runs through all of them: A seal for the coffee. The online roaster whose storytelling experiment you analyzed in the coding block of 6  Mechanisms & Heterogeneity has a new question: does a sustainability seal on the product page pay off? You follow the study from the first idea to the raw Qualtrics export of about 140 respondents, with everything that a real export contains: previews, unfinished questionnaires, and typos. (The data are simulated for this course; the file has the format of a real export.) The storytelling study returns once, in Step 2 — as an example of a manipulation that changes more than one thing.

Table 1: Seven steps from the question to the result
Step What you decide Builds on
1 · Plan The blueprint: question, hypotheses, the role of every variable, and the sample size From business problem to research design, How many users do we need?, Moderation and mediation in your group project
2 · Manipulate The two versions of the stimulus and the manipulation check Randomization, How many users do we need?
3 · Measure The questions and scales for outcome, mediator, and moderator Variables and levels of measurement
4 · Order Which block is asked when Variables and their roles, Mediation: why does it work?
5 · Build Blocks, survey flow, and the randomizer in Qualtrics —
6 · Field Pretest, launch, and data collection Populations and samples, Using p-values responsibly
7 · Analyze From the export to the three analyses 4  Learning from Experiments, 6  Mechanisms & Heterogeneity

After working through this page you will be able to:

Session 8 covers all seven steps. For the draft that you present in Coaching I you need Steps 1 to 5; Step 6 guides the data collection in December; Step 7 is the template for your analysis and for Coaching II, and it ends with an example of the final presentation.

Step 1 · Plan: start from the end

Every column is a decision

The most common mistake happens before the first question is written: groups collect questions that “would be interesting to ask” and decide afterwards what to do with the answers. Work in the opposite direction. You already know the analyses you will run, because every project answers the same three questions: Does it work? For whom? Why? Each question corresponds to a model that you know from 4  Learning from Experiments and 6  Mechanisms & Heterogeneity; each model needs certain columns in the data; each column is produced by a question — or by the randomizer — at a particular place in the questionnaire (Table 2).

Table 2: Design backwards: from the question to the model, to the columns, to the questionnaire
The question The model (coffee study) Columns it needs Where they come from
Does it work? lm(wtp ~ condition) condition, wtp the randomizer; the outcome question
For whom? (moderation) lm(wtp ~ condition * concern) + concern a scale asked before the stimulus
Why? (mediation) lm(warm_glow ~ condition) and lm(wtp ~ condition + warm_glow) + warm_glow a scale asked after the stimulus
Did respondents notice the manipulation? t.test(mc_seal ~ condition) mc_seal the manipulation check
Who answered? Are the groups comparable? descriptives by condition age, gender, cups warm-up questions and demographics

This is the data set that the coffee study delivers in the end — one row per respondent, and every column a decision that was made before the first respondent clicked on the link:

# A tibble: 5 × 8
  condition concern warm_glow   wtp mc_seal  cups   age gender
  <fct>       <dbl>     <dbl> <dbl>   <dbl> <dbl> <dbl> <fct> 
1 Control      4.33      5.33  11.5       2     4    26 female
2 Control      6.33      6.67   8.5       4     1    31 male  
3 Seal         6         4      7.5       6     0    29 male  
4 Control      4.33      5      7.5       3     3    25 female
5 Control      4.67      3.67  10.5       1     3    42 male  

The file you analyzed in 6  Mechanisms & Heterogeneity had the same structure: a treatment column (there called version), a moderator, a mediator, and the outcome. Here the treatment column is called condition — a name that the team typed into the survey flow (Step 5).

Design backwards, build forwards: plan from the analysis back to the questions (this step), then build the questionnaire in the order in which respondents will go through it (Steps 2 to 5).

The causal diagram of your study

Every project has the same causal diagram — the full cast of Variables and their roles, without the confounder, because the randomizer takes care of it (Figure 1). In the coffee study, the roaster Sierra Verde considers having its coffee certified. A certification costs money, so the roaster wants to know whether a sustainability seal on the product page (the treatment X) raises customers’ willingness to pay (the outcome Y). The team expects the seal to work because buying a certified coffee promises a good feeling — the warm glow of doing something good (the mediator M) — and to work better for people who are concerned about the environment (environmental concern, the moderator W).

Figure 1: The causal diagram of the coffee study. Every group project has this structure: a randomized treatment, an outcome, a mediator on the path between them, and a moderator that points at the arrow.

The mediator is a choice — and it decides what the manager learns

A seal could raise willingness to pay for more than one reason, and each reason leads to a different decision (Table 3).

Table 3: Three candidate mechanisms for the effect of a sustainability seal. The coffee study measures the first one.
Mechanism “Customers pay more because …” If this is the reason, the roaster should …
Warm glow
(measured in the coffee study)
… buying the coffee makes them feel good about themselves: they contribute to something good (Hartmann and Apaolaza-Ibáñez 2012) make the contribution tangible — say on the page and on the pack what a purchase achieves
Expected taste and quality … they expect a certified coffee to be the better coffee, although the seal says nothing about taste — a halo effect (Sörqvist et al. 2013) use the seal as a quality cue — show it where customers judge quality, next to the origin and the tasting notes
Credibility … an independent audit makes the claims of the brand believable (trust in “green” claims: Chen 2010) invest in an independent, well-known certification instead of a seal of its own, and say who audits

The coffee study measures one of these mechanisms, warm glow: the team considers it the most plausible one, and a short published scale exists for it. This choice limits what the study can say. A large indirect effect through warm glow tells the roaster how to use the seal; whether expected quality or credibility play a role as well remains untested. The mediator turns “it works” into “what to do next” — which is why it deserves as much thought as the manipulation. For your own project, take the mechanism from your starter paper, measure one mediator well rather than three badly, and be prepared to say in the coaching which alternative explanations you did not measure.

The blueprint

Before you write a single question, fill in a one-page blueprint (Table 4). It forces the decisions that are expensive to change later, and it is the first slide of your Coaching I presentation.

Table 4: The blueprint of the coffee study
Element The coffee study
Decision Should Sierra Verde have its coffee certified and show the sustainability seal on its product pages?
Research question Does a sustainability seal on the product page increase willingness to pay — for whom, and why?
Treatment (X) The product page without vs. with a seal for certified sustainable farming (conditions Control and Seal). Same product, same picture, same text: the seal is the only difference
Outcome (Y) Willingness to pay for a 250 g pack, in euros
Moderator (W) Environmental concern (three items), measured before the stimulus. Expected: the effect is larger for respondents with higher concern
Mediator (M) Anticipated warm glow (three items), measured after the stimulus and before the outcome
Manipulation check “The coffee on the product page carried a seal for sustainable farming” (1–7), asked after the outcome
Controls and descriptives Cups of coffee per day (before the stimulus); age and gender (at the end)
Hypotheses H1: WTP is higher with the seal than without it. H2: The difference increases with environmental concern. H3: The effect is mediated by anticipated warm glow
Planned analyses H1: t-test and lm(wtp ~ condition); H2: interaction model and the effect at low, medium, and high concern; H3: the two mediation regressions and the indirect effect with a bootstrap interval (mediate())
Sample size Planned for a difference of 1 euro at a standard deviation of 2 euros: 64 respondents per condition for 80% power (calculation below)
Exclusions Previews, unfinished responses, failed attention check, speeders (faster than one third of the median duration)

Three remarks on filling it in:

  • Use the starter paper as a quarry. The method section of your starter paper tells you how the authors manipulated the treatment; the measures section or the web appendix lists the items of their scales. You do not replicate the paper — but you should not invent a manipulation or a scale that somebody else has already developed and validated.
  • State the direction. “Environmental concern moderates the effect” is not a hypothesis; “the effect is larger for respondents with higher environmental concern, because a seal means more to people who care about what it certifies” is one — a similar pattern has been found in a tasting study with “eco-friendly” coffee (Sörqvist et al. 2013), and you have seen it for the shipping label in the coding block of 6  Mechanisms & Heterogeneity. If you cannot say in which direction a moderator works and why, choose a different one.
  • Fix the plan before you see data. Hypotheses, the main analysis, and the exclusion rules are written down now. Everything you discover later is welcome — as an exploratory finding, labeled as such (Using p-values responsibly, The pitfalls of looking for heterogeneity).

How many respondents do you need?

One row of the blueprint is a calculation, and you know it from How many users do we need?: the number of respondents follows from the difference that the study should be able to detect. It needs two numbers.

  • The difference between the two conditions that you expect, in the unit of your outcome. Ask which difference would still matter for the decision, or take the evidence of earlier studies — with caution, because published effects tend to be overestimated (Using p-values responsibly). The coffee team plans for 1 euro: a smaller premium would hardly justify a certification, and the storytelling study, with its +1.66 euros, suggests that a difference of this size is realistic.
  • The standard deviation of the outcome: how much do respondents differ from each other in their answers? In the storytelling study, the willingness to pay for the same pack of coffee varied with a standard deviation of about 2 euros. If you have no earlier data, ask ten people your outcome question. For a multi-item scale with seven points, a standard deviation between 1 and 1.5 scale points is typical (in the coffee study: 1.1 for the warm glow scale, 1.3 for environmental concern).
power.t.test(delta = 1, sd = 2, sig.level = 0.05, power = 0.80)

     Two-sample t test power calculation 

              n = 63.77
          delta = 1
             sd = 2
      sig.level = 0.05
          power = 0.8
    alternative = two.sided

NOTE: n is number in *each* group

The team needs 64 respondents per condition, 128 in total, to detect a difference of 1 euro with a probability of 80%. This is a little more than the about 120 respondents of a project in this course — feasible, with some extra effort in recruiting. The same function answers the reverse question: which difference can a study with 60 respondents per condition detect?

power.t.test(n = 60, sd = 2, sig.level = 0.05, power = 0.80)$delta
[1] 1.031

About 1 euro — half a standard deviation (d = 0.5). Table 5 shows how quickly the required sample grows when the expected effect is smaller.

Table 5: Respondents per condition that a comparison of two groups needs to detect an effect with 80% power (5% significance level, two-sided). The standardized effect d is the expected difference divided by the standard deviation of the outcome.
Expected effect (d) 0.2 0.3 0.4 0.5 0.6 0.8
Per condition 394 176 100 64 45 26
In total 788 352 200 128 90 52

Do this calculation for your own project and bring it to Coaching I. If it asks for many more respondents than your group can recruit, do not hope for the best — change the design: make the manipulation stronger (Step 2), measure the outcome more precisely (Step 3: Figure 4 shows how much the measure matters), and measure a control variable before the stimulus that explains a part of the outcome (Motivation: the average effect hides the interesting part). And keep in mind what the calculation covers: it refers to H1. The interaction of H2 is estimated far less precisely than a difference between two groups (Moderation and mediation in your group project) — plan the moderation as a hypothesis whose direction you can examine, not as a result you can count on.

TipYour turn (15 min, in your project group)

Fill in the blueprint for your topic: the decision, the two conditions, the outcome and its unit, one moderator with the expected direction, one mediator, and H1 to H3 in one sentence each. If your group cannot agree on a row, you have found the first item on your agenda for this week.

Step 2 · Manipulate: two versions, one difference

The manipulation is the only thing in your study that you control completely, and it defines what your result means. If the two versions differ in one respect, a difference in the outcome can be attributed to it. If they differ in two, you will never know which one was responsible. Figure 2 shows the two versions of the coffee study: the same product page, without and with the seal.

(a) Condition “Control”
(b) Condition “Seal”
Figure 2: The two versions of the stimulus. Outside the seal, the two pages are identical pixel by pixel. (The brand and the seal are fictitious.)

What makes a good manipulation

One difference. Describe the difference between your two versions in one short sentence: the product page shows a seal for certified sustainable farming — or it does not. If you need the word “and”, the manipulation is confounded. The cleanest manipulations add, remove, or exchange one element of an otherwise identical stimulus: a seal, a label, a disclosure, a claim, the format of a number. Build one version, copy it, and change this one element. What would go wrong otherwise: a seal and a more attractive photo (then the “seal effect” may be a photo effect), a seal and an additional paragraph about the farm’s environmental program (an effect of length and information), or a different coffee in each version (a product effect).

Strong enough to be seen. With 60 respondents per condition, you can only detect medium-to-large effects — a standardized difference of about d = 0.5 (How many users do we need?; the calculation is in Step 1). This is the price of a clean manipulation: a single element is easily overlooked. A small logo in a corner of the page will most likely end in “not significant”, whatever the truth is. Make the one element impossible to miss — the seal of the coffee study is large, sits on the product picture, and says in words what it certifies — and check afterwards whether respondents noticed it.

Realistic. The stimulus should look like the real thing: a product page, an ad, a social-media post, a package. A slide, a mock-up tool, or an image generator is sufficient to build one — as long as everything except the manipulated element is identical in both versions. A fictitious brand — and here also a fictitious seal — keeps respondents from bringing their opinions about a real brand or a real certification into the study; this removes noise, at the price of some realism. If you describe a situation in words (“Imagine you are looking for …”), describe everything a respondent needs to answer the later questions — otherwise each respondent fills the gaps differently.

One version per respondent. The project uses a between-subjects design (Randomization): the randomizer shows each respondent exactly one version. Respondents who see both versions compare them, guess what you are after, and answer accordingly.

On one page, impossible to skip. Put the stimulus on its own page, before any question about it. In Qualtrics, a Timing question on the same page records how long respondents stay on it and can hold back the “next” button for a few seconds.

A closer look at the storytelling study: one difference?

In the coding block of 6  Mechanisms & Heterogeneity you analyzed a study by the same roaster: the product description either listed the facts about the coffee or told its story. Figure 3 shows what the respondents of that study saw. Describe the difference between the two versions in one sentence — and then look again.

(a) Version “Facts”
(b) Version “Story”
Figure 3: The two versions of the storytelling study.

The two texts were written to carry the same information: origin, altitude, variety, harvest by hand, washing, a family farm, weekly roasting, tasting notes. But the Story version does more than change the form. It introduces a person with a name and a daily routine (Rosa Medina, every morning at five, the steep slopes). It adds details that the Facts version does not contain (two sons, a grandfather who planted the first trees). It speaks with a different voice (“we roast her harvest”). And it is six words longer (69 instead of 63). None of this is carelessness — a story cannot be told without a protagonist and a sequence of events. The manipulation is a bundle.

What follows? The experiment remains valid: the randomizer made the two groups of respondents comparable, so the difference of 1.66 euros that you estimated there was caused by the version of the page. But “the version” is everything in which the two pages differ. The study cannot say whether the effect is due to the narrative form, the named farmer, the additional details, or the personal voice — and a manager who wants to apply the result does not know which of them to copy. Randomization makes the respondents of the two groups comparable. It does nothing for the stimuli; making those comparable is your job.

Some treatments are bundles by nature: a story, a tone of voice, a virtual instead of a human influencer, an ad that shows a different person. If your topic is of this kind, three things help:

  • Hold constant whatever can be held constant — the same facts in both versions (the Facts version could name the farmer, too), the same length, the same picture, the same layout.
  • Say what the versions differ in, and interpret the result as the effect of this bundle, not of one of its ingredients.
  • Check both sides: a manipulation check for the difference you intended, and a second question for a difference that should not be there (for example “The description was easy to understand”, which should be answered alike in both versions).

Where you have the choice, choose the manipulation with one element — as the coffee study of this page does.

The manipulation check

A manipulation check measures whether respondents perceived the difference you built in: “The coffee on the product page carried a seal for sustainable farming” (1 = strongly disagree, 7 = strongly agree). It protects you in the worst case: if the outcome does not differ between the conditions, the check tells you whether the idea was wrong (respondents saw the seal, but it did not matter) or the execution was too weak (they did not see it). Three rules:

  1. Check the manipulation, not the hypothesis. Ask whether respondents noticed what you varied (the seal), not whether it had the effect you hoped for (a good feeling — that is the mediator).
  2. Ask it after the outcome. A manipulation check is itself a small intervention: it draws attention to what you varied and can strengthen or change its effect on the questions that follow (Hauser et al. 2018). Placed after the dependent variable, it can no longer do that.
  3. Report it — do not use it to exclude respondents. Dropping respondents who “failed” the check seems to clean the data, but it breaks the randomization: who passes the check depends on the condition, so the remaining groups are no longer comparable (Aronow et al. 2019). The coding block of Step 7 shows this with the coffee data.

If your stimulus contains invented information — a brand or a seal that does not exist, an ad that was not made by an AI — say so on the last page of the questionnaire (a debriefing).

Step 3 · Measure: from constructs to questions

“Willingness to pay”, “warm glow”, and “environmental concern” are constructs: ideas in the heads of researchers. Respondents answer questions. Measurement is the translation from one to the other, and it decides whether your analysis can find what your design created. Table 6 is the measurement plan of the coffee study: for each variable of the blueprint the question and its source, the answer format, and the name of the column in the data.

Table 6: The measurement plan of the coffee study
Variable Question(s) and source Answer format Column
Warm-up, control
Coffee consumption
“How many cups of coffee do you drink on a typical day?” number cups
Moderator (W)
Environmental concern
“Humans are severely abusing the environment.” / “The so-called ‘ecological crisis’ facing humankind has been greatly exaggerated.” / “If things continue on their present course, we will soon experience a major ecological catastrophe.” — three items of the revised NEP scale (Dunlap et al. 2000) three statements, 7-point agreement env_1–env_3
Attention check “To show that you are reading the questions carefully, please select ‘Tea’.” single choice attn
Treatment (X)
Sustainability seal
The stimulus: the product page without or with the seal set by the randomizer condition
Mediator (M)
Anticipated warm glow
“With this coffee, I can feel good because I help to protect the environment.” / “… I can feel better because I do not harm the environment.” / “… I have the feeling of contributing to the well-being of humanity and nature.” — adapted from the warm glow scale of Hartmann and Apaolaza-Ibáñez (2012) three statements, 7-point agreement glow_1–glow_3
Outcome (Y)
Willingness to pay
“What is the most you would be willing to pay for a 250 g pack of this coffee?” — open-ended question (Miller et al. 2011) number (euros) wtp
Manipulation check
Seal noticed
“The coffee on the product page carried a seal for sustainable farming.” — own item 7-point agreement mc_seal
Demographics “How old are you?” / “What is your gender?” number; single choice age, gender

These are twelve questions. Your questionnaire will have about 30: the additional ones describe your respondents and their behavior in the product category (what they buy, where, how often), which makes your report richer and gives you further control variables.

The dependent variable needs real variation

The level of measurement you choose now decides which analyses are possible later (Variables and levels of measurement) — and how much your 120 respondents can tell you. Good dependent variables can take many values:

  • Willingness to pay in euros — an open question with a numeric answer. It is a ratio scale, managers understand it immediately, and it connects to a pricing decision. Stated willingness to pay is usually higher than what people pay when real money is at stake; but both of your groups overstate in the same way, and what you interpret is the difference between them. In a comparison with real purchases, even the simple open question — although it overstated the level — could still lead to the right pricing decision (Miller et al. 2011).
  • A likelihood from 0 to 100 — “How likely are you to buy this product? (0 = certainly not, 100 = certainly)”, as a slider or a number.
  • A multi-item scale — e.g., three purchase-intention statements on a 7-point scale, averaged.

A yes/no question (“Would you buy this product?”) and a single rating question are weak dependent variables for a study of this size. Figure 4 shows why: the same true effect and the same 120 respondents, measured in four ways.

Figure 4: The measure decides what 120 respondents can show. Simulation: 60 respondents per condition, a true effect of d = 0.5 on the underlying attitude; each question measures the attitude with random noise (single-question reliability about 0.6).

With a yes/no question, the experiment detects the effect in fewer than half of all cases; with a scale built from three questions, in about two of three. A coarse or noisy measure is like throwing respondents away. If the managerial question is about a yes/no decision, ask the choice in addition to a finer measure, not instead of it.

Finally, give respondents what they need to answer. If they cannot be expected to know typical prices in the category, state a reference (“A 250 g pack of coffee in the supermarket costs about 5 to 7 euros”) — in both conditions, in exactly the same words.

Scales for the mediator and the moderator

Attitudes and perceptions are measured with itemized rating scales. Two formats cover almost everything you need. A Likert scale asks for the agreement with statements; the coffee study uses it for the mediator and for the moderator (Table 7, Table 8). A semantic differential places the answer between two opposite adjectives; it is the usual format for evaluations of a product, a brand, or an ad (Table 9).

Table 7: A Likert scale: the mediator of the coffee study, anticipated warm glow (items adapted from Hartmann and Apaolaza-Ibáñez (2012))
Imagine you bought this coffee. How much do you agree? Strongly disagree
1

2

3

4

5

6
Strongly agree
7
With this coffee, I can feel good because I help to protect the environment. ○ ○ ○ ○ ○ ○ ○
With this coffee, I can feel better because I do not harm the environment. ○ ○ ○ ○ ○ ○ ○
With this coffee, I have the feeling of contributing to the well-being of humanity and nature. ○ ○ ○ ○ ○ ○ ○
Table 8: The moderator of the coffee study, environmental concern (three items of the revised NEP scale, Dunlap et al. (2000); the original uses five scale points). The second item is reverse-scored: agreement means low concern.
How much do you agree with the following statements? Strongly disagree
1

2

3

4

5

6
Strongly agree
7
Humans are severely abusing the environment. ○ ○ ○ ○ ○ ○ ○
The so-called “ecological crisis” facing humankind has been greatly exaggerated. ○ ○ ○ ○ ○ ○ ○
If things continue on their present course, we will soon experience a major ecological catastrophe. ○ ○ ○ ○ ○ ○ ○
Table 9: A semantic differential: a typical measure of the attitude toward a product (an example of the format; it is not part of the coffee study)
This coffee is …
bad ○ ○ ○ ○ ○ ○ ○ good
unpleasant ○ ○ ○ ○ ○ ○ ○ pleasant
unfavorable ○ ○ ○ ○ ○ ○ ○ favorable

The measurement plan thus contains two kinds of measures: single questions for facts and concrete judgments (cups of coffee, willingness to pay, the manipulation check, age), and scales of three items for the two abstract constructs. Why three statements for one construct, and not one? The next four sections give the answer: what a single answer contains, when one question is enough, which kind of multi-item measure you are building, and how its reliability is assessed.

Every answer contains error: reliability and validity

No question measures a construct perfectly. In the classic model of measurement, every observed answer consists of three parts:

\[ X_O = X_T + X_S + X_R \]

the true value \(X_T\) of the characteristic you want to measure, a systematic error \(X_S\) that pushes the answers in one direction — a leading question, an unbalanced answer scale, the wish to appear in a good light — and a random error \(X_R\) that differs from answer to answer: a word understood differently, a distraction, the mood of the moment. Two quality criteria follow from this model (Malhotra 2020, chap. 9):

  • Reliability is consistency: a reliable measure gives nearly the same result when it is repeated under the same conditions. There is little random error.
  • Validity is truthfulness: a valid measure captures what it is supposed to capture, so that differences in the scores reflect true differences between respondents. There is neither systematic nor random error.

Figure 5 shows the two criteria with the picture of a target. A measure can be reliable without being valid: a bathroom scale that is set two kilograms too high shows the same wrong weight every morning. The reverse is not possible — answers that scatter at random cannot be on target. Reliability is a necessary, but not a sufficient condition for validity.

Figure 5: Reliability and validity. Each dot is one measurement of the same true value, the center of the target.

In your project, the two criteria are secured in different ways. Validity is decided when you choose and word the questions: use established scales, check that every item really belongs to the construct, and avoid the wording problems described at the end of this step (wording rules). Reliability can be built into the questionnaire — by asking several questions about the same construct — and it can be checked with your data.

One question or several?

A construct is an abstract concept — environmental concern, warm glow, satisfaction — that cannot be observed directly; it is latent. What you observe are the answers to items: single questions or statements. A multi-item scale combines the answers to several items into one score, usually their mean.

Whether one item is enough depends on what you measure (Table 10). Facts and concrete judgments — age, the number of cups per day, a willingness to pay, “How much do you like this ad?” — are understood in the same way by everybody, and one good question captures them (Bergkvist and Rossiter 2007). Abstract constructs have several facets and no single natural wording. Here every single answer contains a good deal of random error, and scales with several items do better under most conditions (Diamantopoulos et al. 2012). How far the use of single items should go is still debated (Kamakura 2015; Bergkvist 2015). For your project the rule is simple: single questions for facts and concrete judgments, and three items each for the mediator and the moderator — a compromise between reliability and length.

Table 10: Single-item and multi-item measures
Single item Multi-item scale
Suited for Facts and concrete judgments that everybody understands in the same way Abstract constructs with several facets
In the coffee study Cups per day, willingness to pay, manipulation check, age Environmental concern, anticipated warm glow
Advantages Short and direct; room for more variables in the questionnaire; simple to analyze Random errors cancel out, so the measure is more reliable; several facets are covered and condensed into one score; the reliability can be checked with the data
Disadvantages The reliability cannot be checked; one misunderstood word distorts the whole measure; facets of the construct may be missing A longer questionnaire; the items must fit the construct; you must know whether the measure is reflective or formative

What would the coffee study lose with one question? The study measures anticipated warm glow with three statements. Suppose it had asked only one of them. Figure 6 plots the answers to the first statement against the mean of the other two: the same respondents, the same construct, the same minute — and a correlation of only r = .61. A large part of every single answer is noise.

Figure 6: One statement against the other two statements of the same scale. The size of a dot shows the number of respondents.

The noise has consequences (Table 11). Averaging over three statements cancels a part of the random error — the logic by which the mean of many respondents is more precise than a single one (The standard error), applied to questions. With one statement instead of three, the seal seems to change the warm glow less (measured in standard deviations of the answers), warm glow is less closely related to willingness to pay, and the mediation analysis finds an indirect effect of only 0.48 to 0.72 euros instead of 1.03. Nothing about the respondents has changed, only the precision of the measurement. Random error in a variable weakens its relationships with all other variables; in a mediation analysis, an unreliable mediator makes the mechanism look weaker than it is.

Table 11: The same analyses with one statement instead of three. Effect of the seal: standardized difference between the two conditions (Cohen’s d). Indirect effect and share mediated: as in the mediation analysis of Step 7, with environmental concern as a control variable.
Warm glow measured with Effect of the seal (d) Correlation with WTP Indirect effect (euros) Share mediated
“… feel good because I help to protect the environment” 0.77 .58 0.70 55%
“… feel better because I do not harm the environment” 0.83 .58 0.72 56%
“… the feeling of contributing to the well-being of humanity and nature” 0.64 .52 0.48 37%
the mean of the three statements 0.94 .68 1.03 80%

Reflective or formative?

Measures with several items come in two kinds. The difference lies in the direction of the arrow between the construct and its items, and the standard illustration is the degree of drunkenness (Figure 7). You can measure it through its causes — the number of beers and spirits, the time since the last drink — or through its effects: unclear speech, a slow reaction, an unsteady walk.

Figure 7: Formative and reflective measurement of the same construct. Formative items are causes of the construct; reflective items are its effects.
  • In a reflective measurement, the items are effects of the construct. Because buying the coffee promises a respondent a good feeling, she agrees that she can feel good because she helps to protect the environment, that she can feel better because she does not harm it, and that she has the feeling of contributing to the well-being of humanity and nature. The items are interchangeable expressions of the same thing: they must be correlated, and dropping one of them does not change what is measured. Additional items increase the reliability. The result is called a scale.
  • In a formative measurement, the items are causes or components of the construct. The daily coffee consumption is made up of the cups at home, at work, and in cafés. The items are not interchangeable and need not be correlated — somebody who drinks all their coffee at work is not measured badly. Dropping an item changes the meaning of the construct. Additional items increase the validity, because they cover more of the construct. The result is called an index.

Figure 8 shows these two examples from the world of the coffee study, and Table 12 summarizes how to tell the two kinds apart and what follows from the answer (Jarvis et al. 2003; Diamantopoulos and Winklhofer 2001).

Figure 8: A formative index and a reflective scale: coffee consumption is made up of its components; the warm glow expresses itself in the answers.
Table 12: Reflective scales and formative indices
Reflective scale Formative index
Direction Construct → items: the items express the construct Items → construct: the items make up the construct
Are the items interchangeable? Yes — all of them express the same thing No — each one covers a different component
Must the items be correlated? Yes No
Dropping an item … leaves the meaning unchanged changes the meaning
More items increase … the reliability the validity (coverage of the construct)
Quality check Cronbach’s alpha Completeness: is a relevant component missing? Alpha does not apply
Examples Environmental concern; anticipated warm glow; trust in a brand Coffee consumption (at home + at work + in cafés); satisfaction with a café, measured as satisfaction with the coffee, the service, the atmosphere, and the prices

The attitudes and perceptions that serve as mediators and moderators in your projects — warm glow, trust, authenticity, involvement, attitudes toward AI or toward sustainability — are reflective constructs, and the published scales for them are reflective scales. Formative indices typically describe behavior or knowledge: how intensively somebody uses AI tools (chatbots, image generators, AI features in apps), or how sustainably somebody lives (recycling, organic food, public transport). If you build such an index, list its components first, and do not expect — or require — them to be correlated. Treating a formative index like a reflective scale, for example by deleting the items that correlate weakly with the others, is a common mistake in marketing research (Jarvis et al. 2003).

Cronbach’s alpha: the reliability of a reflective scale

If the items of a reflective scale express the same construct, the answers to them must go together. Cronbach’s alpha (Cronbach 1951) turns this idea into a number. For a scale with \(k\) items and a mean correlation of \(\bar{r}\) between the items, it is

\[ \alpha = \frac{k \, \bar{r}}{1 + (k - 1) \, \bar{r}} \]

For items that are positively correlated, alpha lies between 0 and 1. It estimates the share of the variance of the scale score that is not random error, and is thus a measure of reliability — more precisely, of the internal consistency of the items. (A negative alpha is a warning sign: an item is coded in the wrong direction.) Two things make it larger (Table 13): stronger correlations between the items, and more items.

Table 13: Cronbach’s alpha by the number of items and the mean correlation between them
Mean correlation between the items 2 items 3 items 4 items 6 items
0.3 0.46 0.56 0.63 0.72
0.5 0.67 0.75 0.80 0.86
0.7 0.82 0.87 0.90 0.93

In the coffee study, the three items on environmental concern correlate with a mean of 0.60, which gives an alpha of 0.82; for warm glow, the mean correlation is 0.53 and alpha is 0.77. Step 7 shows how to compute these numbers in R. How to read them:

  • Conventions. By a widely used convention, values of about 0.7 or more are acceptable and values of 0.8 or more are good; Malhotra (2020, chap. 9) calls a value of 0.6 or less unsatisfactory. For a scale with three items, 0.7 is a realistic target.
  • Higher is not always better. An alpha above 0.95 usually means that the items ask the same question in slightly different words.
  • Alpha depends on the number of items. Six items that correlate at 0.3 reach about the same alpha as three items that correlate at 0.5 (Table 13). Do not compare scales of different length by their alpha alone.
  • Alpha is not validity. It tells you that the items measure the same thing, not that they measure the right thing.
  • Alpha is for reflective scales only. The components of a formative index need not be correlated; a low alpha says nothing about its quality.
  • Recode reverse-scored items first. Otherwise they correlate negatively with the other items, and alpha collapses (Step 7).

The formula uses correlations, that is, standardized items. psych::alpha() reports this value as std.alpha and, in addition, a raw_alpha that is computed from the covariances of the items as they are; for the items of one rating scale the two hardly differ.

Where the items come from — and six decisions

Where do the items come from? From the literature, not from your imagination. Look in the measures section or the appendix of your starter paper, in the papers it cites, and in collections such as the Marketing Scales Handbook (Bruner 2019). Adapt the wording to your product, keep the answer format of the original, and cite the source on your slides. Scales that have been validated measure what they claim to measure — and nobody will ask you in the coaching why you worded an item the way you did.

Decisions for every rating scale. Use seven points (five are acceptable; more points give more variation). Label at least the two end points, and use the same labels and the same direction for all items of a scale. An odd number of points allows a neutral answer. Offer “don’t know” only if respondents may really not know (e.g., a brand they have never heard of). Avoid negations (“not”, “un-”) in statements of your own; if a validated scale contains a reverse-scored item — like the second item on environmental concern — keep it, and remember to recode it before you compute the scale (Step 7). On a phone, a matrix with more than five statements becomes hard to read.

Controls, attention check, demographics

  • Control variables are measured before the stimulus. In a randomized experiment they are not needed against confounding, but they make the estimate more precise (Motivation: the average effect hides the interesting part), and they are the confounders of the mediator–outcome relationship that mediation analysis has to adjust for (Mediation: why does it work?). Good candidates predict the outcome: how often respondents buy the product, how much they usually pay, how much they know about the category.
  • One attention check, also before the stimulus: a question with an obvious instructed answer. The rule for excluding respondents who fail it is part of your blueprint.
  • Demographics come last: age as a number, gender with inclusive categories and “prefer not to say”, and whatever else describes your sample (occupation, country). Ask for sensitive information such as income only if you need it — in categories, never as an exact number.

Wording: eight rules

Table 14: Eight rules for the wording of questions
Rule Instead of … … ask
One question, one issue (no double-barreled questions) “How satisfied are you with the taste and the price of this coffee?” two questions: one about taste, one about price
Do not lead “How much do you like this fairly traded, sustainable coffee?” “How much do you like this coffee?”
Numbers instead of vague frequencies “Do you drink coffee regularly?” “How many cups of coffee do you drink on a typical day?”
Who, what, when, where “Which coffee brand do you use?” “Which brand of coffee did you personally buy most often for your home in the last three months?”
Everyday words “How do you evaluate the sustainability positioning of the brand?” “This coffee is produced in an environmentally friendly way.” (agreement)
Answerable “How much did you spend on coffee last year?” “… in a typical week?” — or categories, with “don’t know”
Sensitive topics in categories, at the end “What is your exact monthly income?” income brackets, with “prefer not to say”
Complete, non-overlapping categories “18–25 / 25–35 / 35–50” “18–24 / 25–34 / 35–49 / 50 or older”

Qualtrics offers many more question types than this design needs. Three are useful for the descriptive part of your questionnaire. Multiple choice with multiple answers (“Which of these brands do you know?”) gives one 0/1 column per option and is a good warm-up question. A rank order question (“Rank these five product features”) yields ordinal data: you learn the order, not the distances. A constant sum question (“Distribute 100 points among these features”) also gives the distances, at the cost of more effort for the respondent. Use them to describe your market — the experiment itself needs none of them. The textbook treatment of scaling techniques and questionnaire design is Malhotra (2020, chap. 8 to 10).

Step 4 · Order: the questionnaire follows the causal diagram

Where a question stands decides what its answers can be used for. The principle fits in one sentence: everything that is asked after the stimulus can be changed by it. A variable that the stimulus may have changed cannot serve as a moderator, as a control variable, or as a criterion for excluding respondents — conditioning on such a variable breaks the comparison that the randomizer created (Montgomery et al. 2018). A variable that the stimulus should change — the mediator, the outcome — must come after it. The causal diagram of Figure 1 therefore dictates the order of the questionnaire (Figure 9).

Figure 9: The questionnaire follows the causal diagram, from top to bottom. The moderator and the controls are measured before the randomizer and cannot be affected by the condition; mediator and outcome follow the stimulus in causal order; the manipulation check and the demographics come last. The blocks are numbered as in the table below.
Table 15: The blocks of the questionnaire, in order
Block What is in it Why here
1 Welcome Topic in general terms, duration, voluntary and anonymous participation, contact Respondents decide whether to take part. It names the topic (“coffee”), not the hypothesis
2 Warm-up Two or three easy questions about behavior in the category They get respondents going, describe your sample, and serve as controls
3 Moderator, controls, attention check The moderator scale and everything else you want to compare across or adjust for Before the randomizer: these answers cannot depend on the condition
4 Stimulus One of the two versions, on its own page The randomizer sits here — nowhere else
5 Mediator The mechanism, three items After the stimulus, in causal order, while the impression is fresh
6 Outcome The dependent variable(s) The question the study exists for; it should not come late in a long questionnaire
7 Manipulation check Did respondents notice the difference? After the outcome, so that it cannot influence it
8 Demographics Age, gender, and other sensitive or boring questions They cost little attention, cannot be changed by the stimulus, and a respondent who quits here has already answered everything important
9 Thank you and debriefing Thanks; what was fictitious Honesty towards your respondents

Three questions come up every year:

  • “Can we ask the moderator at the end, so that it does not influence how respondents see the stimulus?” No — a moderator that is measured after the stimulus can be changed by it: after seeing a coffee with a sustainability seal, some respondents will express more concern for the environment. The worry behind the question is legitimate, but the evidence is reassuring (see the box below). Stable characteristics that a stimulus cannot change — age, gender — can stay at the end.
  • “Should the demographics not come first, as in every form?” No — they are the least interesting questions of your survey, and the first minute decides whether a respondent stays.
  • “Why is the manipulation check not directly after the stimulus?” Because it would tell respondents what the study is about, just before the questions that matter (Step 2).

Does a moderator that is asked first prime respondents? Asking about environmental concern, attitudes, or identity directly before a stimulus might change how respondents react to it. Measuring the moderator afterwards avoids this, but risks that the stimulus changes the moderator — the trade-off between priming bias and post-treatment bias is analyzed formally by Blackwell et al. (2025). The empirical evidence favors measuring first: across six experiments, Sheagley and Clifford (2025) found little evidence that measuring a moderator changes the treatment effect, even when it is asked immediately before the experiment. A warm-up question or two between the moderator and the stimulus is cheap insurance.

Do respondents guess the hypothesis and answer accordingly? Such demand effects are a classic worry in survey experiments. Mummolo and Peterson (2019) informed respondents about the researchers’ expectations — and even paid them to respond in line with these — without consistently changing the results. This is no license to announce your hypothesis on the welcome page, but a between-subjects design, in which nobody sees the other version, is quite robust.

Mediator before or after the outcome? In a single questionnaire, both are measured within a minute, and no order can prove that the warm glow causes the willingness to pay rather than the other way round — this is the assumption behind mediation analysis that Mediation: why does it work? discusses. This course asks the mediator first, because this follows the causal order, and keeps it short. You will find both orders in the published literature; look at how your starter paper did it, decide in advance, and use the same order for every respondent.

The first and the last page

The welcome page of the coffee study:

Welcome! This survey is part of a student project in the course Marketing Analytics at WU Vienna. It is about coffee and takes about five minutes. Your participation is voluntary, and you can stop at any time. Your answers are anonymous and will be used for this course project only. If you have any questions, please contact [name, e-mail address]. Thank you for your support!

It says what the survey is about (coffee) and what respondents need to know to decide (duration, anonymity, purpose, contact) — and nothing about the two versions or the expected result. The last page thanks the respondents and tells them what was not real: “The brand Sierra Verde and the sustainability seal do not exist; they were created for this study. Participants saw the product page either with or without the seal.”

Length

Thirty questions and less than ten minutes on a phone are the limit for a survey that people answer as a favor. Most respondents will use a phone: build short pages (one topic per page), avoid large tables, and test every page on a small screen. Every question that is not in your blueprint and does not describe your sample is a candidate for deletion.

Step 5 · Build: blocks, survey flow, and the randomizer

You build the questionnaire in Qualtrics, with the account provided for the course. One group member creates a new, blank survey project and shares it with the others (Collaborate), so that everybody works on the same survey.

TipThe example survey to import

The questionnaire of the coffee study is available as a Qualtrics survey file: 📋 coffee_seal_survey.qsf. To import it, click Create a new project → Survey → Get started, choose Import a QSF file under How do you want to start your survey?, and select the downloaded file. You get a survey in your own account that contains everything this step builds: named blocks and question labels, force response and number validation, the survey flow with the randomizer, and the settings of the checklist below. Preview it until you have seen both product pages, and open its survey flow next to your own when you set up your randomizer.

Two things to know. Unlike the team in the story, the file has a number validation for the willingness to pay — Step 7 shows what happens without it. And if you use a copy as the starting point for your own questionnaire, replace everything that belongs to the coffee study: the question labels, the limits of the validation (0 to 30 euros), the two pictures (they are loaded from this website; upload your own stimuli with Insert graphic), and the texts of the first and the last page.

One block per step

Create one block for each box of Figure 9 — with one exception: the stimulus needs two blocks, one per version, and each of them contains nothing but the stimulus (Figure 10). Give every block a name, and give every question a short label: the label becomes the name of the column in your data. A question labeled wtp is easier to analyze than Q17; the three rows of a matrix table labeled glow arrive as glow_1, glow_2, and glow_3.

Figure 10: The blocks of the coffee study in the Qualtrics survey builder, with named blocks and question labels.
Table 16: Question types and settings for the building blocks of the questionnaire
What you need Question type in Qualtrics Settings
Welcome, stimulus, debriefing Text / Graphic Stimulus: one block per version, the image inserted as a graphic
Likert scale (mediator, moderator) Matrix table, type Likert Seven scale points with labels; force response
Semantic differential Matrix table, type Bipolar Seven points; force response
Willingness to pay, age, cups Text entry, single line Force response; validation: content type Number with a minimum and a maximum
Likelihood from 0 to 100 Slider Minimum 0, maximum 100, value displayed
Attention check, gender Multiple choice, single answer Force response (with “prefer not to say” where appropriate)

Two settings prevent most data problems. Force response (in the question’s Response requirements) makes sure that your key variables have no gaps. Validation for numeric answers (Add validation → Content type → Number, with a minimum and a maximum) makes sure that a willingness to pay arrives as 8.5 and not as “ca. 8,50 €” or 85 (Figure 11). The coffee study forgot the second setting for one question — Step 7 shows the consequences.

Figure 11: Force response and number validation for the willingness-to-pay question.

How the randomizer works

The survey flow (Survey tab → Survey flow) is the list of elements that Qualtrics runs through from top to bottom for every respondent. Initially it contains your blocks, in the order in which you created them. A randomizer is a container in this list: for each respondent, it draws a number of the elements placed directly inside it, runs them, and skips the others. If it contains two elements and draws one, it is a coin flip. Two consequences follow, and they explain almost every mistake of the next section:

  1. Each element inside the randomizer must be one complete condition. Everything that belongs to a version — its label in the data and its stimulus — must be bundled into one element. The bundle is a Group.
  2. Everything that all respondents should see must be outside the randomizer — before it (welcome, warm-up, moderator) or after it (mediator, outcome, manipulation check, demographics).

Figure 12 shows the survey flow of the coffee study; the numbers refer to the five steps of the recipe.

Figure 12: The survey flow of the coffee study (schematic). The randomizer contains two groups; each group contains the label of the condition (embedded data) and its stimulus block. All other blocks are outside the randomizer.
ImportantThe recipe: a randomizer in five steps

Before you start: two stimulus blocks exist, and each contains only the stimulus. Open the survey flow.

  1. Add the randomizer. Click Add Below under the last block that comes before the stimulus and choose Randomizer.
  2. Add one group per condition. Click Add a New Element Here under the randomizer, choose Group, and name it (Control). Repeat for the second condition (Seal).
  3. Label the condition. In each group, add an Embedded Data element: click Create New Field or Choose From Dropdown, type the field name condition, click Set A Value Now, and type the value — Control in the first group, Seal in the second. Same field name, different values.
  4. Move the stimulus blocks in. Drag each stimulus block (click and hold Move) into its group, below the embedded data. Each stimulus block must appear in the flow exactly once — inside its group.
  5. Draw one, evenly. In the randomizer, set the number to 1 (“Randomly present 1 of the following elements”) and tick Evenly Present Elements. Click Apply.

Then compare your flow with Figure 12: the randomizer has exactly two elements directly inside it (the two groups), and every other block is outside.

Figure 13: The randomizer of the coffee study in the Qualtrics survey flow.

Two details of the recipe deserve a comment.

The embedded data field is your treatment variable. Without it, the export does not tell you who saw which version. With it, the data contain a column condition with the values Control and Seal — the X of all your regressions. Type the field name and the values carefully (they are case-sensitive), and do not use a name that Qualtrics reserves for its own columns, such as Status.

“Evenly Present Elements” keeps the groups balanced. Without it, every respondent is a separate coin flip, and with 120 respondents a split of 54 to 66 or worse happens in about 32% of all cases. With it, Qualtrics counts how often each element was shown and keeps the counts equal. Your final groups will still not be exactly equal: the randomizer counts respondents when they pass it, not when they finish, and some respondents leave afterwards or are excluded.

Four ways to get it wrong

Figure 14 shows the four classic mistakes in the survey flow; Table 17 adds four more that do not show in the flow, and tells you how to recognize each of them.

Figure 14: Four classic mistakes in the survey flow (the red frames mark the problem).
Table 17: Eight ways to get the randomizer wrong, and how to notice them
Mistake How you notice it The fix
A The number in the randomizer is not 1 (the randomizer presents all its elements, in random order, unless you change it) In the preview you see both versions Set the number to 1
B Embedded data and stimulus blocks are separate elements directly inside the randomizer In test data, condition is empty for half of the respondents Bundle label and stimulus of each condition in a group
C The stimulus blocks are (also) in the main flow In the preview you see both versions Each stimulus block exactly once, inside its group
D Questions (mediator, outcome) are inside the stimulus blocks The export contains two columns for one variable Stimulus blocks contain only the stimulus; all questions are in common blocks
E No embedded data field The export has no column with the condition Add the field; as a rescue, export the viewing order data (Step 7)
F A block is in the wrong place — typically a block created later, which Qualtrics appends at the end of the flow Compare the flow with Figure 9 Move it; check the flow after every new block
G Two surveys, or two links, one per version — One survey, one link: the randomizer assigns, not you and not the respondent
H The changes were not published Respondents get an older version than your preview shows — e.g., condition is filled in your tests, but empty in the real data Click Publish — and test once more with the real link

Mistake G deserves a sentence. If each group member sends “their” version to their friends, or if respondents can choose between two links, the assignment is no longer random: who sees which version now depends on who knows whom — a confounder, built in by hand (Variables and their roles).

TipYour turn (10 min, in your project group)

On one sheet, list the blocks of your own questionnaire in order — where are the moderator, the mediator, the outcome, and the manipulation check? Then draw the randomizer with everything that is directly inside it, and write down what it stores in your data. Check the sketch with the two rules above (each element inside the randomizer is one complete condition; everything that all respondents see is outside) — or let another group check it. The sketch, and later the screenshot of your real survey flow, belongs on your slides for Coaching I.

Test before you launch

  1. Preview the whole survey (the Preview button) several times, until you have seen both versions, and once in the mobile view (Figure 15). The preview of a single block or question does not run the survey flow.
  2. Generate test responses (Tools → Generate test responses, e.g., 50), export them as described in Step 7, and check in R: Is there a column condition? Are the two groups about equally large? Does every question have answers in both conditions? Are the seven scale points coded from 1 to 7? (If not, correct the recode values of the question.)
  3. Clean up. Delete the test and preview responses (Data & Analysis), reset the counts of the randomizer (Edit Count → Reset All Counts), and publish the survey. Changes that are not published do not reach your respondents.
Figure 15: Preview of the stimulus page in the desktop and the mobile view.
ImportantSettings checklist
  • Questions: short labels for all questions · force response for all key variables · number validation for numeric answers · scale points coded 1 to 7
  • Survey flow: randomizer with two groups, “1 of the following elements”, Evenly Present Elements · embedded data field condition in both groups · all other blocks outside, in the order of Figure 9
  • Look and feel: progress bar on · checked on a phone
  • Survey options → Responses: back button off, so that nobody returns to the stimulus or changes earlier answers
  • Survey options → Security: Anonymize responses on (no IP addresses or location data) · Prevent multiple submissions on
  • Before the launch: test responses deleted · counts reset · survey published

There is a second correct set-up, which you may find in older materials: the randomizer contains only the two embedded data elements (condition = Control, condition = Seal), and two Branch elements below it show the stimulus (“If condition is equal to Seal” → block Stimulus – Seal; the same for Control). It works, and it separates the coin flip from the presentation. Its weakness is that the branch conditions are typed by hand: a small difference in spelling between the embedded data and the branch, and nobody sees a stimulus. With groups there is nothing to type twice — which is why this page uses them, following the tip in the Qualtrics documentation of the randomizer.

Step 6 · Field: pretest, launch, collect

Pretest with people, not only with test data

Test responses check the mechanics; only people can tell you whether the questionnaire is understandable. Before the launch, watch three to five people who are not in your group fill it in on a phone, and ask them to think aloud. Note where they hesitate, ask, or scroll back; how long they need; and — at the end — what they think the study was about. Revise, and test the revised version again. Delete the pretest responses before the launch: they are not part of your data.

Who answers — and what that means

Your sample size calculation (Step 1) says how many respondents you need in the analysis; the guidelines ask for about 120 — about 20 per group member. Aim for about 140 started questionnaires, because some respondents will not finish and a few will be excluded. Family, friends, and fellow students are a convenience sample, and it is worth being precise about what this does and does not threaten:

  • It does not threaten the causal comparison. Whoever answers is assigned to a version by the randomizer, so the two groups are comparable — however unusual your respondents are (Randomization).
  • It does limit what the result says about the market. The effect you estimate is the effect among people like your respondents (Populations and samples). If all of them are 23-year-old business students, you know little about the customers your manager cares about — and you cannot study heterogeneity, because your moderator hardly varies. Recruit broadly, across age groups and backgrounds, and describe in your report who answered.

Decide in advance when to stop

Fix the end of the data collection before it starts — a date or a number of responses — and do not look at the difference between the conditions while the survey is running. Stopping “as soon as the result is significant” produces significant results from pure noise (Using p-values responsibly). For the same reason, do not change the stimulus, the questions, or their order after the launch. And the obvious: respondents are real people who answer once; you do not fill in your own survey, and no response is generated by a script or an AI.

Step 7 · Analyze: from Qualtrics to R

This step turns the export into results, using the raw file of the coffee study: 144 recorded responses, exactly as Qualtrics delivers them. The complete code is in the R script of this module — the template for your own analysis.

Export

In the Data & Analysis tab, choose Export & Import → Export Data and download a CSV file with these settings (Figure 17): Download all fields; Export values (the numeric codes 1 to 7 instead of the answer texts; called Use numeric values in older versions); and, under More options, Export viewing order data for randomized surveys — a backup record of what the randomizer showed to whom. Do not open and save the file in Excel on its way to R: Excel may silently change number and date formats.

Figure 17: The export dialog in the Data & Analysis tab.

Import: three header rows

A Qualtrics CSV file starts with three header rows: the variable names (your question labels), the question texts, and internal import IDs. The data begin in row 4 (Table 18).

Table 18: The first four rows of the export, for two of its 30 columns. The first recorded response is one of the group’s own previews (Status = 1).
Column 3 Column 26
Row 1 · names Status wtp
Row 2 · question texts Response Type What is the most you would be willing to pay for a 250 g pack of this coffee? (in euros)
Row 3 · import IDs {"ImportId":"status"} {"ImportId":"QID9_TEXT"}
Row 4 · the first response 1 1

Read the names from the first row, then the data from the fourth:

library(tidyverse)
base_url <- "https://raw.githubusercontent.com/wu-rds/MA2026/main/data/"
file <- paste0(base_url, "coffee_seal_qualtrics.csv")
# row 1: the names
col_names <- names(read_csv(file, n_max = 0, show_col_types = FALSE))
# row 4 onwards: the data
raw <- read_csv(file, skip = 3, col_names = col_names,
                show_col_types = FALSE)

The second header row is a ready-made codebook — it tells you which question is behind which column:

codebook <- read_csv(file, n_max = 1, col_types = cols(.default = "c")) |>
  pivot_longer(everything(), names_to = "variable",
               values_to = "question")
codebook |> filter(variable %in% c("env_2", "glow_1", "wtp", "condition"))
# A tibble: 4 × 2
  variable  question                                                      
  <chr>     <chr>                                                         
1 env_2     "How much do you agree with the following statements? - The s…
2 glow_1    "Imagine you bought this coffee. How much do you agree? - Wit…
3 wtp       "What is the most you would be willing to pay for a 250 g pac…
4 condition "condition"                                                   

(The qualtRics package reads such a file in one line, read_survey("file.csv"), and keeps the question texts as labels.)

Who is in the file?

The first columns of every export describe the response, not the respondent’s answers. Four of them matter:

# Status: 0 = a real response, 1 = a preview
count(raw, Status, DistributionChannel)
# A tibble: 2 × 3
  Status DistributionChannel     n
   <dbl> <chr>               <int>
1      0 anonymous             141
2      1 preview                 3
# Finished: 1 = reached the end of the survey
count(raw, Finished)
# A tibble: 2 × 2
  Finished     n
     <dbl> <int>
1        0    12
2        1   132
# condition: the field written by the randomizer
count(raw, condition)
# A tibble: 3 × 2
  condition     n
  <chr>     <int>
1 Control      69
2 Seal         71
3 <NA>          4

The file contains three previews by the group, and 12 respondents did not finish. Four of them have no condition: they left before they reached the randomizer. (Qualtrics records unfinished responses only when the session expires, by default after one week — they appear in your data later than the completed ones.)

Exclusions: rules that were fixed in advance

The blueprint of Step 1 named four exclusion rules. Apply them one at a time and note how many responses each rule removes — your report must say so:

d <- raw |>
  rename(duration = `Duration (in seconds)`) |>
  filter(Status == 0)               # (1) no previews
nrow(d)
[1] 141
d <- d |> filter(Finished == 1)     # (2) finished
nrow(d)
[1] 129
d <- d |> filter(attn == 2)         # (3) attention check: 2 = "Tea"
nrow(d)
[1] 125
# (4) no speeders: at least one third of the median duration
d <- d |> filter(duration >= median(duration) / 3)
nrow(d)
[1] 121

The attention check was asked before the randomizer, so failing it cannot depend on the condition. Unfinished responses and speeders can only be identified after the stimulus; this is unavoidable, and it is the reason why you compare how many respondents left in each condition (coding block, task 1). The manipulation check and the outcome are never criteria for exclusion (Step 2).

Cleaning: what respondents typed

The willingness-to-pay question had no number validation. This is what some respondents made of it:

d |> filter(!str_detect(wtp, "^[0-9]+(\\.[0-9]+)?$")) |> pull(wtp)
[1] "10.5 Euro" "11,00"     "8,50"      "8 €"       "ca. 5"    
[6] "€5"        "7,50"      "6,00"     

Extract the number, accept a comma as the decimal sign, and convert it:

d <- d |>
  mutate(wtp_text = wtp,
         wtp = wtp_text |>
           str_extract("[0-9]+([.,][0-9]+)?") |>
           str_replace(",", ".") |>
           as.numeric())
d |> filter(wtp > 30) |> dplyr::select(wtp_text, wtp)
# A tibble: 1 × 2
  wtp_text   wtp
  <chr>    <dbl>
1 85          85

One respondent entered 85 euros for 250 g of coffee — perhaps 8.5 was meant, but you cannot know. The value is impossible rather than extreme (Not trusting your data too early); it is set to missing, and the respondent leaves the analysis sample. A validation rule in Qualtrics (a number between 0 and 30) would have prevented both problems.

NoteWhy dplyr::select() instead of select()?

Several R packages contain a function called select(). The mediation package, which the last analysis of this page uses, loads one of them (the package MASS). From that moment, a plain select() calls the wrong function, and code that worked before stops with an error such as unused arguments. With the package name in front — dplyr::select() — R always takes the function from dplyr, whichever packages are loaded and in whatever order. The code on this page and the R script of this module are written this way; do the same in your project.

gender_labels <- c("female", "male", "non-binary / other",
                   "prefer not to say")
d <- d |>
  mutate(wtp = if_else(wtp > 30, NA_real_, wtp),
         condition = factor(condition, levels = c("Control", "Seal")),
         gender = factor(gender, levels = 1:4, labels = gender_labels)) |>
  filter(!is.na(wtp))       # the analysis sample: a valid outcome
nrow(d)
[1] 120

From items to scales

Environmental concern and warm glow are reflective scales with three items each (Step 3). The second item on environmental concern (“… has been greatly exaggerated”) is worded in the opposite direction, so that a high number means low concern. Reverse it (on a scale from 1 to 7: 8 minus the answer), check the reliability of each scale with Cronbach’s alpha, and average the items:

d <- d |> mutate(env_2r = 8 - env_2)
d |> dplyr::select(env_1, env_2r, env_3) |> cor() |> round(2)
       env_1 env_2r env_3
env_1    1.0   0.60  0.60
env_2r   0.6   1.00  0.59
env_3    0.6   0.59  1.00
# Cronbach's alpha: environmental concern, then warm glow
psych::alpha(dplyr::select(d, env_1, env_2r, env_3))$total$raw_alpha
[1] 0.8152
psych::alpha(dplyr::select(d, glow_1, glow_2, glow_3))$total$raw_alpha
[1] 0.7723

Both values are above 0.7: the items of each scale go together (Cronbach’s alpha). Report the alpha of every multi-item scale in your presentation. If you forget to reverse an item, you will notice it here: its correlations with the other items are negative, and alpha collapses — for the concern scale to −0.95 (and psych::alpha() prints a warning that names the item).

d <- d |>
  mutate(concern   = rowMeans(pick(env_1, env_2r, env_3)),
         warm_glow = rowMeans(pick(glow_1, glow_2, glow_3)))

Figure 18 summarizes the way from the export to the analysis sample. A chart or a sentence of this kind belongs in every report.

Figure 18: From the export to the analysis sample of the coffee study. The white numbers are the responses removed at each step.

With an alpha far below 0.7, look at the correlations between the items first. Usually one item behaves differently from the others — because it was not reversed, or because respondents understood it differently. The full output of psych::alpha() helps: r.drop is the correlation of each item with the mean of the other items, and raw_alpha under Reliability if an item is dropped shows what the alpha of the scale would be without that item. Dropping an item of a published scale needs a reason that you can state; with three items you are then left with two, and you should say so in your report. For a formative index none of this applies: its items need not be correlated.

Checks before the results

Did the randomizer work? The groups should be about equally large and similar in everything that was measured before the stimulus:

d |>
  group_by(condition) |>
  summarise(n = n(), concern = mean(concern), cups = mean(cups),
            age = mean(age), share_female = mean(gender == "female"))
# A tibble: 2 × 6
  condition     n concern  cups   age share_female
  <fct>     <int>   <dbl> <dbl> <dbl>        <dbl>
1 Control      61    4.42  1.85  34.8        0.475
2 Seal         59    4.40  2.08  32.8        0.576

The groups are similar, not identical — randomization balances the groups on average, not in every sample (Randomization). Differences of this size are what chance produces with 60 respondents per group.

Did respondents notice the manipulation?

d |>
  group_by(condition) |>
  summarise(mean_check = mean(mc_seal), sd_check = sd(mc_seal))
# A tibble: 2 × 3
  condition mean_check sd_check
  <fct>          <dbl>    <dbl>
1 Control         2.46     1.09
2 Seal            5.68     1.32

On the 7-point scale, the agreement with “the coffee carried a seal” is 5.7 in the Seal condition and 2.5 in the control condition: the seal was noticed — though, as a mean below 7 shows, not by everyone.

The three analyses

H1: Does it work? The comparison of the two conditions, with the reporting standard of Reporting the result (Figure 19):

t.test(wtp ~ condition, data = d)

    Welch Two Sample t-test

data:  wtp by condition
t = -3.4, df = 108, p-value = 0.001
alternative hypothesis: true difference in means between group Control and group Seal is not equal to 0
95 percent confidence interval:
 -2.0111 -0.5277
sample estimates:
mean in group Control    mean in group Seal 
                7.252                 8.522 
psych::cohen.d(d$wtp, d$condition)$cohen.d
      lower effect upper
[1,] 0.2596 0.6276 0.993
Figure 19: Willingness to pay by condition: boxplots with the individual answers; blue: group means with 95% confidence intervals.

Respondents who saw the product page with the seal were willing to pay 8.52 euros for the 250 g pack, compared with 7.25 euros without the seal — a difference of 1.27 euros (+18%, 95% CI [0.53; 2.01]; Welch t-test: t(108) = 3.39, p = .001; d = 0.63).

H2: For whom? The interaction of the condition with the moderator, and the effect of the seal at low, medium, and high environmental concern (Continuous × categorical, Figure 20):

d <- d |> mutate(seal = as.numeric(condition == "Seal"))
model_h2 <- lm(wtp ~ seal * concern, data = d)
round(coef(summary(model_h2)), 3)
             Estimate Std. Error t value Pr(>|t|)
(Intercept)     5.036      0.856   5.887    0.000
seal           -0.879      1.172  -0.750    0.455
concern         0.501      0.187   2.687    0.008
seal:concern    0.490      0.255   1.921    0.057
emtrends(model_h2, ~ concern, var = "seal",
         at = list(concern = c(3, 4.5, 6)))
 concern seal.trend    SE  df lower.CL upper.CL
     3.0      0.592 0.485 116   -0.368     1.55
     4.5      1.328 0.325 116    0.684     1.97
     6.0      2.063 0.519 116    1.035     3.09

Results are averaged over the levels of: seal 
Confidence level used: 0.95 
Figure 20: The effect of the seal on willingness to pay, by environmental concern, with 95% confidence band. The marks at the bottom show where the respondents are.

The estimated effect of the seal increases with environmental concern — from 0.59 euros (95% CI [−0.37; 1.55]) at a concern of 3 to 2.06 euros ([1.03; 3.09]) at a concern of 6. The interaction (b = 0.49 per scale point, 95% CI [−0.02; 1.00], p = .057) is not significant at the 5% level: the data are in line with H2, but with 120 respondents they cannot establish it.

This is what an honest moderation result of a project of this size typically looks like. Note what made the analysis possible at all: the moderator was measured before the stimulus, with a scale that varies between respondents.

H3: Why? The two mediation regressions, and mediate() from the mediation package (Imai et al. 2010) for the indirect effect with its bootstrap interval (Mediation: why does it work?, Figure 21). Environmental concern, measured before the stimulus, is a control variable in both models, because it plausibly affects both the warm glow and the willingness to pay:

library(mediation)   # install.packages("mediation")
# path a: from the treatment to the mediator
model_m <- lm(warm_glow ~ seal + concern, data = d)
# paths b and c': from the mediator to the outcome; the direct effect
model_y <- lm(wtp ~ seal + warm_glow + concern, data = d)
# indirect and direct effect, with 1,000 bootstrap samples
set.seed(1)
med <- mediate(model_m, model_y, treat = "seal", mediator = "warm_glow",
               boot = TRUE, sims = 1000)
summary(med)

Causal Mediation Analysis 

Nonparametric Bootstrap Confidence Intervals with the Percentile Method

               Estimate 95% CI Lower 95% CI Upper p-value    
ACME              1.031        0.621        1.503  <2e-16 ***
ADE               0.253       -0.360        0.853   0.428    
Total Effect      1.284        0.628        1.910   0.002 ** 
Prop. Mediated    0.803        0.511        1.478   0.002 ** 
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Sample Size Used: 120 


Simulations: 1000 

mediate() takes the two models, the name of the treatment — as a 0/1 variable, here seal from H2 — and the name of the mediator. With boot = TRUE it does what Mediation: why does it work? did by hand: it draws 1,000 bootstrap samples of the respondents, estimates both models in each of them, and reports percentile intervals. In the output, ACME (average causal mediation effect) is the indirect effect a × b, ADE (average direct effect) is the direct effect c′, and Prop. Mediated is the indirect effect as a share of the total effect.

Figure 21: Mediation in the coffee study: the seal raises the anticipated warm glow (a), and the warm glow goes with a higher willingness to pay (b).

Of the total effect of 1.28 euros (95% CI [0.63; 1.91]), 1.03 euros ran through the anticipated warm glow (indirect effect, bootstrap 95% CI [0.62; 1.50]) — about 80% of the effect. The remaining direct effect of 0.25 euros (95% CI [−0.36; 0.85]) cannot be distinguished from zero. The split into a direct and an indirect effect assumes that there are no unobserved confounders of warm glow and willingness to pay.

Read the share with care: it is the ratio of two estimates, and its interval runs from 51% to more than 100% (a share above 100% would mean that the direct effect is negative). With 120 respondents, “most of the effect” is what the data support — not a precise percentage.

The result supports the mechanism that the study measured. It does not rule out the mechanisms that were not measured (Step 1): respondents who expect a certified coffee to taste better, or who trust the brand more, may report a warmer glow as well.

From the results to the presentation

The project ends with a presentation of ten minutes for the decision maker who commissioned the study. 🎤 The example presentation of the coffee study (PDF) shows what becomes of the results of this page: ten slides after the title, one message per slide, the numbers that a critical reader needs next to every chart, a recommendation that follows from the estimates — and an appendix with the exclusions, the item statistics, the regression tables, and the robustness checks. The slides follow the nine points of the presentation guidelines; the last slide shows how the ten minutes are divided.

Use it as a model for the structure and the level of detail, not as a template: your study needs its own story.

TipCoding block (25 min): work with the raw export

Use the raw file coffee_seal_qualtrics.csv and the R script of this module.

  1. Attrition. How many respondents left the survey before the end — how many before, and how many after the randomizer? Did more respondents drop out in one condition than in the other, and why would that be a problem?
  2. Precision. Add concern and cups as control variables to the H1 regression. What happens to the estimated effect of the seal and to its standard error? Why are these variables allowed as controls, while warm_glow is not?
  3. What not to do. Re-run H1 after dropping the respondents who “failed” the manipulation check (Seal: mc_seal of 4 or less; Control: 4 or more). How does the result change? Why is this exclusion not allowed, although the attention check is?
  4. Reporting. Write one sentence each for H1, H2, and H3 in the reporting format of 4  Learning from Experiments and 6  Mechanisms & Heterogeneity.
  5. Measurement (bonus). Repeat the mediation analysis of H3 with the single statement glow_1 instead of the scale warm_glow. What happens to path b, to the indirect effect, and to the share mediated — and why?

The solutions will be available after the session.

Checklist for Coaching I

For Coaching I you upload the PDF print of your questionnaire (Tools → Import/Export → Print survey) and a short slide deck (guidelines). The print shows the questions, not the survey flow — add a screenshot of your survey flow to the slides. Before you upload, check:

Learning check

(LC8.1) A group wants to ask its moderator — “How important is sustainability to you?” — after the stimulus, “so that respondents are not influenced before they see the ad”. What is the problem with this plan, and what would you recommend?

(LC8.2) Which statements about the randomizer in the Qualtrics survey flow are correct?

(LC8.3) A group tests whether a “Made with AI” label reduces the intention to buy a backpack. Version A shows a photo of a hiking backpack without a label; version B shows an AI-generated picture of a different backpack with the label. Why can a difference in purchase intention not be attributed to the label? How would you change the stimuli?

(LC8.4) A group compares an Instagram post by a human influencer with a post by a virtual influencer. The two posts differ in the person shown, in the caption, and in the number of likes. What exactly does the estimated effect measure? Which differences can the group remove, and what should it do about the ones that remain?

(LC8.5) A group plans to measure its outcome with the question “Would you buy this product? (yes / no)”. Give two reasons why this is a weak choice for a study with 120 respondents, and propose two better measures.

(LC8.6) Improve the following questions: (a) “How satisfied are you with the price and the quality of your streaming service?” (b) “Do you often buy sustainable products?” (c) “Don’t you agree that ads made by AI are less trustworthy?”

(LC8.7) After the data collection, a group finds that 25 of the 62 respondents in the treatment condition answered the manipulation check “wrongly”, and wants to drop them. Why is this a problem — and which exclusions are legitimate?

(LC8.8) Which statements about multi-item scales are correct?

(LC8.9) Reflective or formative? (a) “I trust this brand”, “This brand keeps its promises”, “This brand is honest”. (b) “How often do you use … AI chatbots / AI image generators / AI features in apps?” (c) Satisfaction with a hotel, measured as the satisfaction with the room, the breakfast, the staff, and the location. For which of the three would you report Cronbach’s alpha — and what would you check for the others?

(LC8.10) To keep the questionnaire short, a group measures its mediator with a single statement. Name two risks of this decision. What does random measurement error in the mediator do to the estimated indirect effect?

(LC8.11) Your export contains 151 rows, and 118 respondents remain in your analysis. Which steps typically lie in between, and what does your report have to say about them?

(LC8.12) A fellow student says: “Our respondents are only friends and family, so our experiment cannot show a causal effect.” Do you agree? Distinguish what a convenience sample threatens from what it does not threaten.

References

Aronow, Peter M., Jonathon Baron, and Lauren Pinson. 2019. “A Note on Dropping Experimental Subjects Who Fail a Manipulation Check.” Political Analysis 27 (4): 572–89. https://doi.org/10.1017/pan.2019.5.
Bergkvist, Lars. 2015. “Appropriate Use of Single-Item Measures Is Here to Stay.” Marketing Letters 26 (3): 245–55. https://doi.org/10.1007/s11002-014-9325-y.
Bergkvist, Lars, and John R. Rossiter. 2007. “The Predictive Validity of Multiple-Item Versus Single-Item Measures of the Same Constructs.” Journal of Marketing Research 44 (2): 175–84. https://doi.org/10.1509/jmkr.44.2.175.
Blackwell, Matthew, Jacob R. Brown, Sophie Hill, Kosuke Imai, and Teppei Yamamoto. 2025. “Priming Bias Versus Post-Treatment Bias in Experimental Designs.” Political Analysis 33: 361–77. https://doi.org/10.1017/pan.2025.3.
Bruner, Gordon C. 2019. Marketing Scales Handbook: Multi-Item Measures for Consumer Insight Research. Vol. 10. GCBII Productions.
Chen, Yu-Shan. 2010. “The Drivers of Green Brand Equity: Green Brand Image, Green Satisfaction, and Green Trust.” Journal of Business Ethics 93 (2): 307–19. https://doi.org/10.1007/s10551-009-0223-9.
Cronbach, Lee J. 1951. “Coefficient Alpha and the Internal Structure of Tests.” Psychometrika 16 (3): 297–334. https://doi.org/10.1007/BF02310555.
Diamantopoulos, Adamantios, Marko Sarstedt, Christoph Fuchs, Petra Wilczynski, and Sebastian Kaiser. 2012. “Guidelines for Choosing Between Multi-Item and Single-Item Scales for Construct Measurement: A Predictive Validity Perspective.” Journal of the Academy of Marketing Science 40 (3): 434–49. https://doi.org/10.1007/s11747-011-0300-3.
Diamantopoulos, Adamantios, and Heidi M. Winklhofer. 2001. “Index Construction with Formative Indicators: An Alternative to Scale Development.” Journal of Marketing Research 38 (2): 269–77. https://doi.org/10.1509/jmkr.38.2.269.18845.
Dunlap, Riley E., Kent D. Van Liere, Angela G. Mertig, and Robert Emmet Jones. 2000. “Measuring Endorsement of the New Ecological Paradigm: A Revised NEP Scale.” Journal of Social Issues 56 (3): 425–42. https://doi.org/10.1111/0022-4537.00176.
Hartmann, Patrick, and Vanessa Apaolaza-Ibáñez. 2012. “Consumer Attitude and Purchase Intention Toward Green Energy Brands: The Roles of Psychological Benefits and Environmental Concern.” Journal of Business Research 65 (9): 1254–63. https://doi.org/10.1016/j.jbusres.2011.11.001.
Hauser, David J., Phoebe C. Ellsworth, and Richard Gonzalez. 2018. “Are Manipulation Checks Necessary?” Frontiers in Psychology 9: 998. https://doi.org/10.3389/fpsyg.2018.00998.
Imai, Kosuke, Luke Keele, and Dustin Tingley. 2010. “A General Approach to Causal Mediation Analysis.” Psychological Methods 15 (4): 309–34.
Jarvis, Cheryl Burke, Scott B. MacKenzie, and Philip M. Podsakoff. 2003. “A Critical Review of Construct Indicators and Measurement Model Misspecification in Marketing and Consumer Research.” Journal of Consumer Research 30 (2): 199–218. https://doi.org/10.1086/376806.
Kamakura, Wagner A. 2015. “Measure Twice and Cut Once: The Carpenter’s Rule Still Applies.” Marketing Letters 26 (3): 237–43. https://doi.org/10.1007/s11002-014-9298-x.
Malhotra, Naresh K. 2020. Marketing Research: An Applied Orientation. 7th, Global Edition. Pearson.
Miller, Klaus M., Reto Hofstetter, Harley Krohmer, and Z. John Zhang. 2011. “How Should Consumers’ Willingness to Pay Be Measured? An Empirical Comparison of State-of-the-Art Approaches.” Journal of Marketing Research 48 (1): 172–84. https://doi.org/10.1509/jmkr.48.1.172.
Montgomery, Jacob M., Brendan Nyhan, and Michelle Torres. 2018. “How Conditioning on Posttreatment Variables Can Ruin Your Experiment and What to Do about It.” American Journal of Political Science 62 (3): 760–75. https://doi.org/10.1111/ajps.12357.
Mummolo, Jonathan, and Erik Peterson. 2019. “Demand Effects in Survey Experiments: An Empirical Assessment.” American Political Science Review 113 (2): 517–29. https://doi.org/10.1017/S0003055418000837.
Sheagley, Geoffrey, and Scott Clifford. 2025. “No Evidence That Measuring Moderators Alters Treatment Effects.” American Journal of Political Science 69 (1): 49–63. https://doi.org/10.1111/ajps.12814.
Sörqvist, Patrik, Daniel Hedblom, Mattias Holmgren, et al. 2013. “Who Needs Cream and Sugar When There Is Eco-Labeling? Taste and Willingness to Pay for ‘Eco-Friendly’ Coffee.” PLoS ONE 8 (12): e80719. https://doi.org/10.1371/journal.pone.0080719.