Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Within-subject crossover with one-time randomization

More
1 week 5 days ago #275321 by claraw
Hi all,
I’m planning to run a within-subject crossover study in LimeSurvey. Each participant will complete two sessions one week apart (T0–T3 in each). In session 1, participants are randomized to condition A or B after T1, and I need to see (they need to tell me) the result immediately because I apply the treatment myself. In session 2, they get the other condition, so the system has to know what they received in session 1. The survey is open (no tokens), participants enter a self-generated code, and I must not be able to link responses to persons.
  1. How can I randomize once after T1 and show the result right away?
  2. How can the system remember the condition for session 2, one week later, when many other participants are using the same survey link in between?
  3. How can participants continue in session 2 and automatically get the other condition?
  4. Is “save and resume later” suitable for this without storing email addresses?
  5. Would two separate surveys be more robust for this design?

Please Log in to join the conversation.

More
1 week 5 days ago - 1 week 5 days ago #275322 by Matadeleo
Not sure if I fully understand your needs but what about this?

Two surveys:

In survey 1:
Code:
Condition equation question: {if(rand(0, 1) == 1, "A", "B")}

Say they got option B - they now see this end message

Here is your link to take part in the second survey which will become active on (Date):

Code:
https://yourplatform.com/123456?Condition={Condition}

You could also pass the user generated ID here, so you have a link between survey 1 & survey 2 per respondent

In survey 2, hidden short free question at the start: Condition. This gets prefilled with the condition shown in survey 1. You can now show or hide questions based on this. So if respondent link is Condition B -> show questions related to Condition A for second survey.

The difficult part is that respondents will have to save your link somewhere which isn't ideal.
Last edit: 1 week 5 days ago by Matadeleo.

Please Log in to join the conversation.

More
1 week 5 days ago #275323 by claraw
Thank you for your reply. This is already very helpful.

Do you think there would be also another option instead of the link that responder need to save.

Every responder gets a unique Code - Is it possible to link this Code to the conditions (A/B) so that the system knows which condition the person had the week before?

Please Log in to join the conversation.

More
1 week 4 days ago #275324 by holch

Every responder gets a unique Code - Is it possible to link this Code to the conditions (A/B) so that the system knows which condition the person had the week before?
It depends. If they get a unique code, then you know who they are basically? You could basically create a token based survey with the token being the unique code and based on that you could show/hide the respective branch of the second survey.

Or, if the unique code is given only after the first survey, you could include something in the unique code that can be interpreted by Limesurvey as the trigger for branch A or branch B.

So I think it would be good to know a little bit more background information.

1. Unique code / self-generated code: Who generates this code, when and how?
2. How do you invite people, how do they get the link to the first survey and how do they get the link to the second survey?
3. Where does the unique / self-generated code into play.

If we understand your proceedure better, we might be able to find a solution.

My concern: You are trying to be as anonymous as possible ("I must not be able to link responses to persons"), fine. But then you want to be able to know what they answered in the first survey / or which branch they went to pass this on to the second one. Without any possibility to connect the two surveys, this is basically impossible.

You could for example give them the a code at the end, either A or B and they need to remember this (note it down) for the next survey. They then choose the respective code at the beginning of the second survey. There is always a risk that they forget about it though. But then they need to remember their unique code in some way.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
1 week 4 days ago #275326 by claraw
Thanks for your reply, here is more background.

Code: Participants create it themselves at the start of each session, on the survey itself (e.g., last letter of their mother’s first name plus their own birthday). I don’t see it and don’t record it. It is only used to link the data of both sessions during analysis.

Invitation: Interested people scan a QR code, give online informed consent and enter their email address (stored separately, no link to the survey data). They are then invited to come to our lab. Both sessions take place at a university laptop in the lab, one week apart, with me present. So participants don’t need to keep any link. In one session they receive a treatment (experimental session), in the other not (control session) (crossover within-subject). This order should be randomized in the first session after T1.

Where the condition comes in: I apply the treatment myself, so I do need to know the condition (A or B) right after T1 in session 1. That is fine for me, because I only know “this person gets A”, not which code belongs to them. Lets say for example If I know ,,A", I can apply treatment and if I know ,,B" I know its the control session.

So I’m thinking of your suggestion with a letter: at the end of session 1 the participant gets a card with A or B (no code on it), and in session 2 I open the survey link for the other condition (two links for everyone, ?Condition=A and ?Condition=B), or the participant selects the letter on the first page. The two surveys are then linked only via the self-generated code.

Does that make sense?

Thanks for your invest in this!

Please Log in to join the conversation.

More
1 week 4 days ago #275330 by holch
Thanks for the background. That helps to understand what you are really doing and thus we can think about how best to run this in practice.

OK, so the code is generated by them and you hope it will be the same for both sessions. I assume most will get it right, some will screw it up though. We always need to think of the worst. But anyway, it is what it is.

So the person creates the code and puts it into a text field so it is stored within the results, so that you can match the datasets from both surveys.

I think the easiest part is what you suggested. You give them a card with a code or letter for what they were chosen for. To make it less suspicious (some people might figure out what A and B is), you could go for numbers from 1-9, with the even numbers being for one option and the odd number for the other, or something like that. But A and B or any other combination should be fine. You are personally on site, people might not try anything funny anyway.

I wouldn't create two links. It is not a big deal but basically "too complicated". Just put a question on the start of the survey where they mark either A or B and then you base your filters on that and show only the questions for the case they did not have in the first round.

Another options is, that you use a closed survey for second survey. You basically store in the results for survey 1 if they have been A or B. Then you export the data and take their self generated code and the column with A and B and create the token table with this data. You can generate dummy email addresses, etc.

Then you use the selfgenerated code as the token code and A/B is a custom attribute. You can then use this custom attribute (make the survey non-anonymous!!!! you have no personal data in there anyway, so no need for making it anonymous) and then give them the survey link, a field will pop-up for them to insert the token (which is their selfgenerated code) and then Limesurvey already knows based on the token/code if they were A or B and you show/hide the relevant questions.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
1 week 3 days ago #275331 by claraw
Thank you so much for taking the time to think this through and for the detailed suggestions, this is really helpful!

I’ll try your first option: a card with the condition label at the end of session 1, and a question at the start of session 2 where participants select it, so the filters show the other condition.

I’ll also think again about whether participants should really generate their own code or whether I should assign one. I really appreciate your help!
 

Please Log in to join the conversation.

Moderators: tpartner, holch

Lime-years ahead

Online-surveys for every purse and purpose