How to compare the same people before and after
Source:vignettes/articles/guides/compare-the-same-people-before-and-after.Rmd
compare-the-same-people-before-and-after.RmdCompare answers from the same respondents before and after an activity.
The example in this guide is Before and after the workshop. A pre and post training evaluation: participants rate their confidence, and say whether they would recommend the training, before and after it.
In SurveyStudio
- In RStudio, open the Addins menu, choose
surveyframe: Try a demo and pick
paired. - On Design, see the 2 confidence sliders, before and now. Each respondent answers both, so the pair stays in 1 row.
- On Design, choose Plan: the paired t-test and the Wilcoxon test compare the sliders, and McNemar’s test compares the 2 yes or no answers.
- On Analyse, run the plan and report the change with its effect size.

The Design screen with the Before and after the
workshop study open.
In R
d <- sframe_demo("paired")
results <- run_analysis_plan(d$responses, d$instrument)The research questions and what the report gives
| Research question | Method | What the report gives |
|---|---|---|
| Did confidence change from before to after the training? | Paired samples t-test | The APA 7 sentence and a table, with a chart where the method has one |
| Did confidence change, without assuming normality? | Wilcoxon signed-rank test | The APA 7 sentence and a table, with a chart where the method has one |
| Did willingness to recommend change? | McNemar test | The APA 7 sentence and a table, with a chart where the method has one |
Run the example in SurveyStudio or R to see the results, each marked as demonstration data.