Watts-Lab / surveys

Library of surveys for deliberation experiments
MIT License
3 stars 4 forks source link

Question order randomization #108

Closed JamesPHoughton closed 11 months ago

JamesPHoughton commented 1 year ago

There are times when we want question orders to be randomized, (ie, sometimes ask about republicans first, sometimes about democrats). SurveyJS is supposed to be able to do this randomization, but I am not sure that it is doing this correctly. We need to:

a) check that it actually happens

I'm not sure how to check for randomization in cypress, as it expects things to be deterministic. We could:

b) record the order as seen by participants in the result object

The order that the participants actually see the question is scientifically interesting

A good place to start would be one of the listening behaviors surveys, as it has 10 questions that should be shown in a randomized order.

JamesPHoughton commented 1 year ago

We have completed a), but not b)

JamesPHoughton commented 1 year ago

May use the api built into surveyjs, documentation is here: https://surveyjs.io/form-library/documentation/api-reference/survey-data-model.

We use this library in the labeledRange custom component.

gumillie222 commented 12 months ago

137 questions are randomized, tests updated, and randomized order are returned as part of scoreFunc

note on partisanFeelingThermometer - questions are on different pages. We might need to look more into if surveyJS supports randomizing page order. If not, one way to address this might be to put questions on the same page.