R Code to Identify Invalid Qualtrics/MTurk Data


This R code is useful for identifying invalid Qualtrics/MTurk data based on the following pre-registered criteria:


1) Participants who have not completed the study on Qualtrics;

2) Participants who have more than one complete or incomplete responses on Qualtrics;

3) Participants who appear on Qualtrics but not on MTurk.


This code is based on CloudResearch but also applicable to Prolific. It does not require any packages and uses simple for-loops and if/else statements, but I am open to suggestions for making it more beginner-friendly!