0

I collected some data using MTurk. I would like to check if some participants answer in a systematic manner or in pattern/sequence. For example, they answer only 1 or only 7 to a group of questions as well as if they answer in a using repetitive sequence or pattern (e.g. 1,2,3,4,5,4,3,2,1 or 4,5,4,3,4,5,4,3, etc.). I know there must be a way to create a function for this or maybe one already exists. However, I have no idea where to start. Ideally, I look like to be able to use this function on various groups of variables (e.g. 16 items vs 5 items scales with responses ranging from 1 to 7). Do you any easy way to do this? Or any indication. For example, is there a way to look for following numbers in general, that I could include in my function?

Any help is welcome, Best wishes

r2evans
  • 108,754
  • 5
  • 72
  • 122
  • Welcome to SO, Agatha Bataille! This seems too general at the moment, but as a starter: `all(x %in% c(1,7))` addresses your first pattern, perhaps `all(diff(x) %in% c(-1,1))` might *inform* the second. Your question is not reproducible (too little data), needs focus (find patterns ... *you* need to be specific with patterns), needs details (what structure is *"various groups of variables"*?), and seems to treat SO like a free-code-service (little or no effort shown). Please read https://stackoverflow.com/q/5963269, [mcve], and https://stackoverflow.com/tags/r/info then come back and add to it. – r2evans Jul 02 '21 at 13:20

0 Answers0