How to create a mock "task" for the purposes of forwarding participants to a survey?


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
psychnewbie - 10/10/2019
Dave - 10/10/2019
psychnewbie - 10/10/2019
Dave - 10/10/2019
psychnewbie - 10/10/2019
I've determined that for one of my experimental conditions, the simplest way to integrate it into my current use of <batch> elements is to create a script that has as little content as possible, and really serves almost exclusively to redirect participants to my survey experiment.

How should I go about doing this? What are the minimum components required for my mock experiment script?

A minimal script consists of a <trial> and a <block> running the trial.

Explain exactly what you want to do, i.e. how you determine who is supposed to be directed to either your survey or the standard finish page, and I'll show you how.

What I'm planning on here is several batch elements, one of which directs participants (at random) to this "mock task"/minimal script condition. All participants who are randomly assigned to this script should then be directed to the survey experiment. 
Does that make sense?


It does. You should handle that in the respective <batch> element directly then, per /onscriptend. I.e. something like this (that last condition is the mock condition):

<batch 1>
/ subjects = (1 of 3)
/ groupassignment = random
/ file = "task1.iqx"
</batch>

<batch 2>
/ subjects = (2 of 3)
/ groupassignment = random
/ file = "task2.iqx"
</batch>

<batch 3>
/ subjects = (3 of 3)
/ groupassignment = random
/ file = "mocktask.iqx"
/ onscriptend = [if (batch.3.currentscript == "mocktask.iqx") {
defaults.finishpage = concat("https://yourwebsitehere.com/?subjectid=", script.subjectid);
};
]
</batch>

I've put the above up at https://mili2nd.co/elob so you can try this out for yourself.

Thank you so much! What would a bare minimum script look like (i.e. a single page with text informing participants they're being forwarded to a survey)?

<block myblock>
/ trials = [1=mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
/ timeout = 5000
</trial>

<text mytext>
/ items = ("You will be forwarded to a survey in 5 seconds.")
</text>




psychnewbie
psychnewbie
Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)
Group: Forum Members
Posts: 12, Visits: 27
Dave - 10/10/2019
psychnewbie - 10/10/2019
Dave - 10/10/2019
psychnewbie - 10/10/2019
I've determined that for one of my experimental conditions, the simplest way to integrate it into my current use of <batch> elements is to create a script that has as little content as possible, and really serves almost exclusively to redirect participants to my survey experiment.

How should I go about doing this? What are the minimum components required for my mock experiment script?

A minimal script consists of a <trial> and a <block> running the trial.

Explain exactly what you want to do, i.e. how you determine who is supposed to be directed to either your survey or the standard finish page, and I'll show you how.

What I'm planning on here is several batch elements, one of which directs participants (at random) to this "mock task"/minimal script condition. All participants who are randomly assigned to this script should then be directed to the survey experiment. 
Does that make sense?


It does. You should handle that in the respective <batch> element directly then, per /onscriptend. I.e. something like this (that last condition is the mock condition):

<batch 1>
/ subjects = (1 of 3)
/ groupassignment = random
/ file = "task1.iqx"
</batch>

<batch 2>
/ subjects = (2 of 3)
/ groupassignment = random
/ file = "task2.iqx"
</batch>

<batch 3>
/ subjects = (3 of 3)
/ groupassignment = random
/ file = "mocktask.iqx"
/ onscriptend = [if (batch.3.currentscript == "mocktask.iqx") {
defaults.finishpage = concat("https://yourwebsitehere.com/?subjectid=", script.subjectid);
};
]
</batch>

I've put the above up at https://mili2nd.co/elob so you can try this out for yourself.

Thank you so much! What would a bare minimum script look like (i.e. a single page with text informing participants they're being forwarded to a survey)?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
psychnewbie - 10/10/2019
Dave - 10/10/2019
psychnewbie - 10/10/2019
I've determined that for one of my experimental conditions, the simplest way to integrate it into my current use of <batch> elements is to create a script that has as little content as possible, and really serves almost exclusively to redirect participants to my survey experiment.

How should I go about doing this? What are the minimum components required for my mock experiment script?

A minimal script consists of a <trial> and a <block> running the trial.

Explain exactly what you want to do, i.e. how you determine who is supposed to be directed to either your survey or the standard finish page, and I'll show you how.

What I'm planning on here is several batch elements, one of which directs participants (at random) to this "mock task"/minimal script condition. All participants who are randomly assigned to this script should then be directed to the survey experiment. 
Does that make sense?


It does. You should handle that in the respective <batch> element directly then, per /onscriptend. I.e. something like this (that last condition is the mock condition):

<batch 1>
/ subjects = (1 of 3)
/ groupassignment = random
/ file = "task1.iqx"
</batch>

<batch 2>
/ subjects = (2 of 3)
/ groupassignment = random
/ file = "task2.iqx"
</batch>

<batch 3>
/ subjects = (3 of 3)
/ groupassignment = random
/ file = "mocktask.iqx"
/ onscriptend = [if (batch.3.currentscript == "mocktask.iqx") {
defaults.finishpage = concat("https://yourwebsitehere.com/?subjectid=", script.subjectid);
};
]
</batch>

I've put the above up at https://mili2nd.co/elob so you can try this out for yourself.

psychnewbie
psychnewbie
Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)
Group: Forum Members
Posts: 12, Visits: 27
Dave - 10/10/2019
psychnewbie - 10/10/2019
I've determined that for one of my experimental conditions, the simplest way to integrate it into my current use of <batch> elements is to create a script that has as little content as possible, and really serves almost exclusively to redirect participants to my survey experiment.

How should I go about doing this? What are the minimum components required for my mock experiment script?

A minimal script consists of a <trial> and a <block> running the trial.

Explain exactly what you want to do, i.e. how you determine who is supposed to be directed to either your survey or the standard finish page, and I'll show you how.

What I'm planning on here is several batch elements, one of which directs participants (at random) to this "mock task"/minimal script condition. All participants who are randomly assigned to this script should then be directed to the survey experiment. 
Does that make sense?


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
psychnewbie - 10/10/2019
I've determined that for one of my experimental conditions, the simplest way to integrate it into my current use of <batch> elements is to create a script that has as little content as possible, and really serves almost exclusively to redirect participants to my survey experiment.

How should I go about doing this? What are the minimum components required for my mock experiment script?

A minimal script consists of a <trial> and a <block> running the trial.

Explain exactly what you want to do, i.e. how you determine who is supposed to be directed to either your survey or the standard finish page, and I'll show you how.

Edited 5 Years Ago by Dave
psychnewbie
psychnewbie
Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)Partner Member (642 reputation)
Group: Forum Members
Posts: 12, Visits: 27
I've determined that for one of my experimental conditions, the simplest way to integrate it into my current use of <batch> elements is to create a script that has as little content as possible, and really serves almost exclusively to redirect participants to my survey experiment.

How should I go about doing this? What are the minimum components required for my mock experiment script?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search