Random selection and ratings with radiobutton


Author
Message
wuaham
wuaham
Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)
Group: Forum Members
Posts: 38, Visits: 173
Dave - 3/3/2020
wuaham - 3/3/2020
Hi
I am a bit new to Inquisit.
I have two groups of texts (Group-A and Group-B). Each group contains 5 different texts (so there are 10 different texts altogether in two groups). I have to select one group at random and then select a text from that group randomly. After text is displayed I have to rate the text with 3 questions (I will use radio button for each of these questions). I have to make sure that all texts are displayed to complete my experiment.

How can I do this so that I can collect the data: what text was displayed, rating response-1, rating response-2, rating response-3? I am currently doing in this way but fails to get the way I want my data to be organised:

<expt exp1>
/ blocks = [1-20= myblock]
/ recorddata = true
</expt>

<block myblock>
/ trials = [1 =list.triallist; 2 = testRate]
</block>

<list triallist>
/ items = (trial.a, trial.b)
/ poolsize = 20
/ itemprobabilities = (0.50; 0.50)
/ maxrunsize = 1
</list>

<trial a>
/ stimulusframes = [1 = text1]
/ trialduration = 1000
/ recorddata = true
</trial>

<trial b>
/ stimulusframes = [1 = text2]
/ trialduration = 1000
/ recorddata = true
</trial>

<text text1>
/ items = a
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<text text2>
/ items = b
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<item a>
/ 1 = "1"
/ 2 = "2"
/ 3 = "3"
/ 4 = "4"
/ 5 = "5"
</item>

<item b>
/ 1 = "A"
/ 2 = "B"
/ 3 = "C"
/ 4 = "D"
/ 5 = "E"
</item>


<surveypage testRate>
/ fontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/subcaptionfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = AType, BType, CType]
/showpagenumbers = false
/showquestionnumbers = false
/backbuttonposition = (10%, 90%)
/nextbuttonposition = (90%, 90%)
/ finishlabel = "Next"
/ nextlabel = "Next"
</surveypage>


<radiobuttons AType>
/caption = "A type quesion..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 15%)
</radiobuttons>

<radiobuttons BType>
/caption = "B type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 35%)
</radiobuttons>

<radiobuttons CType>
/caption = "C type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 60%)
</radiobuttons>


Any idea would be highly appreciated

Thank you.






<values>
/ trialcount = 0
/ trialtype = ""
/ textitem = ""
</values>


<expt exp1>
/ blocks = [1=myblock]
/ recorddata = true
</expt>

<block myblock>
/ trials = [1-10 = list.triallist]
</block>

<list triallist>
/ items = (trial.a, trial.b)
/ poolsize = 10
/ maxrunsize = 1
</list>

<trial a>
/ ontrialend = [
    values.textitem = text.text1.currentitem;
    values.trialtype = "A";
    values.trialcount += 1;
]
/ stimulusframes = [1 = text1]
/ trialduration = 1000
/ recorddata = false
/ branch = [
    surveypage.testrate
]
</trial>

<trial b>
/ ontrialend = [
    values.textitem = text.text2.currentitem;
    values.trialtype = "B";
    values.trialcount += 1;
]
/ stimulusframes = [1 = text2]
/ trialduration = 1000
/ recorddata = false
/ branch = [
    surveypage.testrate
]
</trial>

<text text1>
/ items = a
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<text text2>
/ items = b
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<item a>
/ 1 = "1"
/ 2 = "2"
/ 3 = "3"
/ 4 = "4"
/ 5 = "5"
</item>

<item b>
/ 1 = "A"
/ 2 = "B"
/ 3 = "C"
/ 4 = "D"
/ 5 = "E"
</item>


<surveypage testrate>
/ fontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/subcaptionfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = AType, BType, CType]
/showpagenumbers = false
/showquestionnumbers = false
/backbuttonposition = (10%, 90%)
/nextbuttonposition = (90%, 90%)
/ finishlabel = "Next"
/ nextlabel = "Next"
/ recorddata = false
/ branch = [
    trial.recorddata;
]
</surveypage>

<trial recorddata>
/ validresponse = (0)
/ trialduration = 0
/ recorddata = true
</trial>

<radiobuttons AType>
/caption = "A type quesion..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 15%)
</radiobuttons>

<radiobuttons BType>
/caption = "B type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 35%)
</radiobuttons>

<radiobuttons CType>
/caption = "C type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 60%)
</radiobuttons>

<data>
/ columns = (date time subject group blocknum blockcode values.trialcount values.trialtype values.textitem radiobuttons.AType.response radiobuttons.BType.response radiobuttons.CType.response surveypage.testrate.latency)
/ separatefiles = true
</data>

Thank you. This solved the problem - Well done Dave!
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
wuaham - 3/3/2020
Hi
I am a bit new to Inquisit.
I have two groups of texts (Group-A and Group-B). Each group contains 5 different texts (so there are 10 different texts altogether in two groups). I have to select one group at random and then select a text from that group randomly. After text is displayed I have to rate the text with 3 questions (I will use radio button for each of these questions). I have to make sure that all texts are displayed to complete my experiment.

How can I do this so that I can collect the data: what text was displayed, rating response-1, rating response-2, rating response-3? I am currently doing in this way but fails to get the way I want my data to be organised:

<expt exp1>
/ blocks = [1-20= myblock]
/ recorddata = true
</expt>

<block myblock>
/ trials = [1 =list.triallist; 2 = testRate]
</block>

<list triallist>
/ items = (trial.a, trial.b)
/ poolsize = 20
/ itemprobabilities = (0.50; 0.50)
/ maxrunsize = 1
</list>

<trial a>
/ stimulusframes = [1 = text1]
/ trialduration = 1000
/ recorddata = true
</trial>

<trial b>
/ stimulusframes = [1 = text2]
/ trialduration = 1000
/ recorddata = true
</trial>

<text text1>
/ items = a
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<text text2>
/ items = b
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<item a>
/ 1 = "1"
/ 2 = "2"
/ 3 = "3"
/ 4 = "4"
/ 5 = "5"
</item>

<item b>
/ 1 = "A"
/ 2 = "B"
/ 3 = "C"
/ 4 = "D"
/ 5 = "E"
</item>


<surveypage testRate>
/ fontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/subcaptionfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = AType, BType, CType]
/showpagenumbers = false
/showquestionnumbers = false
/backbuttonposition = (10%, 90%)
/nextbuttonposition = (90%, 90%)
/ finishlabel = "Next"
/ nextlabel = "Next"
</surveypage>


<radiobuttons AType>
/caption = "A type quesion..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 15%)
</radiobuttons>

<radiobuttons BType>
/caption = "B type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 35%)
</radiobuttons>

<radiobuttons CType>
/caption = "C type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 60%)
</radiobuttons>


Any idea would be highly appreciated

Thank you.






<values>
/ trialcount = 0
/ trialtype = ""
/ textitem = ""
</values>


<expt exp1>
/ blocks = [1=myblock]
/ recorddata = true
</expt>

<block myblock>
/ trials = [1-10 = list.triallist]
</block>

<list triallist>
/ items = (trial.a, trial.b)
/ poolsize = 10
/ maxrunsize = 1
</list>

<trial a>
/ ontrialend = [
    values.textitem = text.text1.currentitem;
    values.trialtype = "A";
    values.trialcount += 1;
]
/ stimulusframes = [1 = text1]
/ trialduration = 1000
/ recorddata = false
/ branch = [
    surveypage.testrate
]
</trial>

<trial b>
/ ontrialend = [
    values.textitem = text.text2.currentitem;
    values.trialtype = "B";
    values.trialcount += 1;
]
/ stimulusframes = [1 = text2]
/ trialduration = 1000
/ recorddata = false
/ branch = [
    surveypage.testrate
]
</trial>

<text text1>
/ items = a
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<text text2>
/ items = b
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<item a>
/ 1 = "1"
/ 2 = "2"
/ 3 = "3"
/ 4 = "4"
/ 5 = "5"
</item>

<item b>
/ 1 = "A"
/ 2 = "B"
/ 3 = "C"
/ 4 = "D"
/ 5 = "E"
</item>


<surveypage testrate>
/ fontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/subcaptionfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = AType, BType, CType]
/showpagenumbers = false
/showquestionnumbers = false
/backbuttonposition = (10%, 90%)
/nextbuttonposition = (90%, 90%)
/ finishlabel = "Next"
/ nextlabel = "Next"
/ recorddata = false
/ branch = [
    trial.recorddata;
]
</surveypage>

<trial recorddata>
/ validresponse = (0)
/ trialduration = 0
/ recorddata = true
</trial>

<radiobuttons AType>
/caption = "A type quesion..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 15%)
</radiobuttons>

<radiobuttons BType>
/caption = "B type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 35%)
</radiobuttons>

<radiobuttons CType>
/caption = "C type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 60%)
</radiobuttons>

<data>
/ columns = (date time subject group blocknum blockcode values.trialcount values.trialtype values.textitem radiobuttons.AType.response radiobuttons.BType.response radiobuttons.CType.response surveypage.testrate.latency)
/ separatefiles = true
</data>

wuaham
wuaham
Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)
Group: Forum Members
Posts: 38, Visits: 173
Hi
I am a bit new to Inquisit.
I have two groups of texts (Group-A and Group-B). Each group contains 5 different texts (so there are 10 different texts altogether in two groups). I have to select one group at random and then select a text from that group randomly. After text is displayed I have to rate the text with 3 questions (I will use radio button for each of these questions). I have to make sure that all texts are displayed to complete my experiment.

How can I do this so that I can collect the data: what text was displayed, rating response-1, rating response-2, rating response-3? I am currently doing in this way but fails to get the way I want my data to be organised:

<expt exp1>
/ blocks = [1-20= myblock]
/ recorddata = true
</expt>

<block myblock>
/ trials = [1 =list.triallist; 2 = testRate]
</block>

<list triallist>
/ items = (trial.a, trial.b)
/ poolsize = 20
/ itemprobabilities = (0.50; 0.50)
/ maxrunsize = 1
</list>

<trial a>
/ stimulusframes = [1 = text1]
/ trialduration = 1000
/ recorddata = true
</trial>

<trial b>
/ stimulusframes = [1 = text2]
/ trialduration = 1000
/ recorddata = true
</trial>

<text text1>
/ items = a
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<text text2>
/ items = b
/ fontstyle = ("MS Shell Dlg 2", 6.42%, false, false, false, false, 5, 1)
</text>

<item a>
/ 1 = "1"
/ 2 = "2"
/ 3 = "3"
/ 4 = "4"
/ 5 = "5"
</item>

<item b>
/ 1 = "A"
/ 2 = "B"
/ 3 = "C"
/ 4 = "D"
/ 5 = "E"
</item>


<surveypage testRate>
/ fontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/subcaptionfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = AType, BType, CType]
/showpagenumbers = false
/showquestionnumbers = false
/backbuttonposition = (10%, 90%)
/nextbuttonposition = (90%, 90%)
/ finishlabel = "Next"
/ nextlabel = "Next"
</surveypage>


<radiobuttons AType>
/caption = "A type quesion..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 15%)
</radiobuttons>

<radiobuttons BType>
/caption = "B type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 35%)
</radiobuttons>

<radiobuttons CType>
/caption = "C type question..."
/ options = (
"1",
"2",
"3",
"4",
"5",
)
/required = true
/orientation = horizontal
/ position = (20%, 60%)
</radiobuttons>


Any idea would be highly appreciated

Thank you.






GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search