Millisecond Forums

Web Experiment with repeated measures

https://forums.millisecond.com/Topic29845.aspx

By Alehanbeekan - 10/7/2020

Hi all, 

I am new to inquisit and to programming in general.. At the moment I am working on a web experiment which should have two sessions (with one day in between). The order of the sessions should be counterbalanced between participants. I used a batch to counterbalance between the participants and it works that participants with odd ID get the negative condition and the participants with even ID get the neutral condition when they click the link. But how can I make sure that if the participants with odd ID click the link a second time, they will get the neutral condition and vice versa? 

Apparently Inquisit should track session number automatically, but refering to session in my script this does not seem to work. 

Here is what I did:
<batch Negative_First>
/ subjects = (1 of 2)
/ file = "Negative_First.iqx"
</batch>

<batch Neutral_First>
/ subjects = (2 of 2)
/ file = "Neutral_First.iqx"
</batch>

Script of Negative_First
<expt session 1>
/ sessions = (1 of 2)
/ blocks = [1 = moodinduction_negative]
</expt>
<expt session 2>
/ sessions = (2 of 2)
/ blocks = [1 = moodinduction_neutal]
</expt>

Script of Neutral_First
<expt session 1>
/ sessions = (1 of 2)
/ blocks = [1 =  moodinduction_neutral]
</expt>
<expt session 2>
/ sessions = (2 of 2)
/ blocks = [1 = moodinduction_negative]
</expt>

I would be happy, if someone can help me :)
Thanks a lot in advance!
By Dave - 10/8/2020

Alehanbeekan - 10/8/2020
Hi all, 

I am new to inquisit and to programming in general.. At the moment I am working on a web experiment which should have two sessions (with one day in between). The order of the sessions should be counterbalanced between participants. I used a batch to counterbalance between the participants and it works that participants with odd ID get the negative condition and the participants with even ID get the neutral condition when they click the link. But how can I make sure that if the participants with odd ID click the link a second time, they will get the neutral condition and vice versa? 

Apparently Inquisit should track session number automatically, but refering to session in my script this does not seem to work. 

Here is what I did:
<batch Negative_First>
/ subjects = (1 of 2)
/ file = "Negative_First.iqx"
</batch>

<batch Neutral_First>
/ subjects = (2 of 2)
/ file = "Neutral_First.iqx"
</batch>

Script of Negative_First
<expt session 1>
/ sessions = (1 of 2)
/ blocks = [1 = moodinduction_negative]
</expt>
<expt session 2>
/ sessions = (2 of 2)
/ blocks = [1 = moodinduction_neutal]
</expt>

Script of Neutral_First
<expt session 1>
/ sessions = (1 of 2)
/ blocks = [1 =  moodinduction_neutral]
</expt>
<expt session 2>
/ sessions = (2 of 2)
/ blocks = [1 = moodinduction_negative]
</expt>

I would be happy, if someone can help me :)
Thanks a lot in advance!

The way to do this would be to assign by group ID in your <expt>s

Script of Negative_First
<expt session1>
/ groups (1 of 2)
/ blocks = [1 = moodinduction_negative]
</expt>
<expt session2>
/ groups (2 of 2)
/ blocks = [1 = moodinduction_neutal]
</expt>

Script of Neutral_First
<expt session1>
/ groups (1 of 2)
/ blocks = [1 = moodinduction_neutral]
</expt>
<expt session2>
/ groups (2 of 2)
/ blocks = [1 = moodinduction_negative]
</expt>

pass group ID in via URL parameter to the web experiment's start page, and then give your participants two separate links

https://[yourexperimentsurl]?groupid=1 for session #1
and
https://[yourexperimentsurl]?groupid=2 for session #2
By Alehanbeekan - 10/9/2020

Hi Dave,

Thanks for your quick answer! That worked :)​​​