Trostyanetsky
|
|
Group: Forum Members
Posts: 5,
Visits: 22
|
Hello! I am new to this and would appreciate any input :) Here is my situation.
I have 4 images of individuals (say, personA.jpg, personB.jpg, personC.jpg, and personD.jpg) I need to link them randomly with 4 other different pictures(say, Pic1.jpg, Pic2.jpg, Pic3.jpg,Pic4.jpg) I need these to appear on thesame page (say, PersonA.jpg with Pic2.jpg). Once a person image and picturehave been chosen, they cannot be used again for the duration of the study. Following each pairing, I need to ask a bunch ofsurveys (so pairing 1 then surveys; pairing 2, then surveys, pairing 3 thensurveys, pairing 4 then surveys).
Do you have a suggestion about what functions to use to make this happen?
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
This should be rather straightforward.
<expt> / blocks = [1-4=sequence(myblock, mysurvey)] </expt>
<block myblock> / trials = [1=mytrial] </block>
<trial mytrial> / stimulusframes = [1=person, pic] / validresponse = (57) </trial>
<text person> / items = ("A.jpg", "B.jpg", "C.jpg", "D.jpg") / select = noreplace / resetinterval = 0 / selectionrate = block / position = (30%, 50%) </text>
<text pic> / items = ("1.jpg", "2.jpg", "3.jpg", "4.jpg") / select = noreplace / resetinterval = 0 / selectionrate = block / position = (70%, 50%) </text>
<block mysurvey> / trials = [1=mypage] </block>
<surveypage mypage> / caption = "This is the survey part" </surveypage>
(Change the <text> elements to <picture> elements)
|
|
|
Trostyanetsky
|
|
Group: Forum Members
Posts: 5,
Visits: 22
|
Thank you! I just tried that and it worked perfectly. A bit of a more complicated follow-up (but should be the last in the series :)) I would like the picture of the person that was selected for the pairing (say, if A.jpg was paired with 2.jpg) to then appear on each subsequent survey page. So it would look like A.jpg with 2.jpg followed by survey with A.jpg displayed on each survey page, then B.jpg with 1.jpg followed by survey with B.jpg displayed on each survey page, and so on.
|
|
|
Trostyanetsky
|
|
Group: Forum Members
Posts: 5,
Visits: 22
|
Hello again,I am not exactly sure if I need to repost thisquestion as another separate thread, so I am giving it another shot under thisthread. I am combining my two previous questions: I have 4 images ofindividuals (say, personA.jpg, personB.jpg,personC.jpg,and personD.jpg). Ineed to link them randomly with 4 other different pictures(say, Pic1.jpg, Pic2.jpg, Pic3.jpg,Pic4.jpg). I need these to appear on the samepage (say, PersonA.jpg with Pic2.jpg). Oncea person image and picturehave been chosen, they cannot be used again for theduration of the study. Following each pairing, I need to ask a bunch of surveys (sopairing 1 then surveys; pairing 2, then surveys, pairing 3 then surveys,pairing 4 then surveys). *** I was able to do the above, withyour help **** I would now need the picture of the person that was selected for the pairing (say,if A.jpg was paired with 2.jpg) to appear on eachsubsequent survey page. This is so that participants recall who they areanswering survey questions about (because the surveys are associated with the physical appearance of the person pictured). So, if A.jpg was paired with 2.jpg,this would be followed by surveys with A.jpg displayed on eachsurvey page. Then, if then B.jpg was paired with 1.jpg, thiswould be followed by followed by survey with B.jpg displayed oneach survey page, and so on. Is this possible? Thank you!! Looking forward to your reply, Zina
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
Just run the <trial> and <surveypage>s in one single block. Only one selection is made for the stimuli (/selectionrate=block), so you can simply do:
<expt> / blocks = [1-4=myblock] </expt> <block myblock> / trials = [1=mytrial; 2=mypage] </block> <trial mytrial> / stimulusframes = [1=person, pic] / validresponse = (57) </trial> <text person> / items = ("A.jpg", "B.jpg", "C.jpg", "D.jpg") / select = noreplace / resetinterval = 0 / selectionrate = block / position = (30%, 50%) </text> <text pic> / items = ("1.jpg", "2.jpg", "3.jpg", "4.jpg") / select = noreplace / resetinterval = 0 / selectionrate = block / position = (70%, 50%) </text> <block mysurvey> / trials = [1=mypage] </block> <surveypage mypage> / stimulusframes = [1=person, pic] / caption = "This is the survey part" </surveypage>
|
|
|
Trostyanetsky
|
|
Group: Forum Members
Posts: 5,
Visits: 22
|
Once again, this worked perfectly, and I got through a bit of programming before I got stuck again. Basically, I have the following set of stimuli. 4 pictures of people 4 videos of those same people 4 vignettes (also in picture form - basically a picture of some text)
With your help, I have figured out how to do the following: Pair pictures of people with vignettes randomly and, following this, ask questions about the person shown.
What I am trying to do now is play a video of the same person before the questions are asked. So it would look like is the following; for each block: Page 1: Picture of person A paired with one of four vignettes Page 2: Video of person APage 3: Questions (ratings) with picture of person A on the page.I have generated some code but can't seem to get the videos to correspond with the person selected. Is there anything I can do? Like a conditional statement? Here is my code so far, <expt> / blocks = [1-4=myblock] </expt>
<block myblock> / trials = [1=pictureandvignette; 2=ptvideo; 3=ratings] </block>
<trial pictureandvignette> / stimulusframes = [1=person, vignette] / validresponse = (57) </trial>
<picture person> / items = ("A.jpg", "B.jpg", "C.jpg", "D.jpg") / select = noreplace / resetinterval = 0 / selectionrate = block / position = (50%, 30%) </picture>
<picture vignette> / items = ("1.jpg", "2.jpg", "3.jpg", "4.jpg") / select = noreplace / resetinterval = 0 / selectionrate = block / position = (50%, 70%) </picture>
************************************************<block ptvideos> / trials = [1=ptvideo] </block>
<trial ptvideo> / stimulusframes = [1=ptvideo] / validresponse = (57) </trial>
<video ptvideo> / items = ("PersonA.wmv", "PersonB.wmv", "PersonC.wmv", "PersonD.wmv") / playthrough = true / select = noreplace / resetinterval = 0 / selectionrate = block / position = (50%, 70%) </video>
************************************************ <block ratings> / trials = [1=ratings] </block>
<surveypage ratings> / stimulusframes = [1=person] / caption = "This is the survey part" </surveypage>
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
> I have generated some code but can't seem to get the videos to correspond with the person selected.
See the "How to Present Stimulus Pairs" topic in the documentation. You simply need to have the <video>'s selection depend on the person <picture> element's selection.
|
|
|
Trostyanetsky
|
|
Group: Forum Members
Posts: 5,
Visits: 22
|
Excellent! I will check this out. I have been browsing the forums for 2 hours and wasn't able to find the right topic!! Z
|
|
|