Case 1: the climate-neutral shipping label — green_label.csv: 1,000 customers of an online shop, randomized label at checkout (label 1/0), order value in euros, segment (new/returning), sustainability score 1–7 (eco_score, from an earlier survey).
- Mean order value by label × segment, plotted: parallel or not?
order_value ~ label * segment: the label effect for each segment from the coefficients and with emtrends(); do the effects differ?
order_value ~ label * eco_score: the effect at a score of 2, 4, 6; what does the coefficient of label alone mean?
Laptops open — alone or with your neighbor. Section “Coding block” in 06-mechanisms.R.
Case 2: the story behind the coffee — coffee_story.csv: a survey experiment, 320 respondents, randomized product description (version: Facts / Story), perceived authenticity (1–7, after), wtp for a 250 g pack (euros), involvement (1–7, before).
- Total effect of the story on willingness to pay, with CI
- The three paths a, b, c′ (with
involvement as control); indirect effect and share mediated
- Bootstrap CI of the indirect effect (or
mediate())
- Which assumption does the split rely on — and what would you add to the questionnaire?
At the end: one table presents case 1, another case 2 — Menti first: your label effect for new customers (case 1) and your share mediated (case 2).