Random sampling question


Author
Message
f.smulders@maastrichtunive...
f.smulders@maastrichtuniversity.nl
New Member (35 reputation)New Member (35 reputation)New Member (35 reputation)New Member (35 reputation)New Member (35 reputation)New Member (35 reputation)New Member (35 reputation)New Member (35 reputation)New Member (35 reputation)
Group: Forum Members
Posts: 3, Visits: 17
I have a memory task with a study / Encoding block and a Test block. I have 56 picture stimuli, of which a random 40 must be presented during the Encoding block. During the Test block, all 56 are presented, so that during Test, 40 will be 'old' and 16 will be 'new'. That is indeed accomplished by the script below.
But now I want something better: I want exactly 10 old items and 4 new items (randomly interspersed) in every quartile of the Test block. Still, it is essential that these are randomly selected without replacement out of the whole set of 56 pictures, so different they are across participants.
The goal is to analyze results as a function of 'time' with 4 levels, and then have 10 old and 4 new items at each of the 4 levels of the factor 'time'.
I feel I need to set things up differently, but how?
Many thanks for help!

*************************************************
Creating Instruction pages
*************************************************

<page introPage>
^Welcome to the experiment.^
The experiment contains a Study and a Test phase.^
In each phase, you will be shown a series of pictures.^
^
During the Study phase, determine whether a pictured object is SMALLER than a soccerball or LARGER.^
Also, remember which pictures you have seen, and when. You later need this in the Test phase.^
The study phase will take [] minutes in total.^
^
During the Test phase, we present many pictures from the Study phase again ('old pictures'),^
but also 'new pictures'. You need to indicate if a picture is 'old' or 'new'.^
If 'old', then you indicate the moment at which it was presented during the Study phase on a timeline.^
</page>

<page taskPage>
"More instructions to be given before blocks, here."
</page>

<page encInstrPage>
Study phase^
^
^
You will see a series of pictures, taking about [] minutes.^
Please indicate for every object whether it is smaller or larger than a soccerball.^
There is no need to respond very fast, just inspect each picture thoroughly.^
You have three seconds to answer.^
^
If smaller, press 'S' with your left index finger.^
If larger, press 'L' with your right index finger.^
^
Keep these fingers above the 'S' and 'L' keys on the keyboard.^
Remember both the pictures and their moment of presentation.^
</page>

<page testInstrPage>
Test phase^^^
You will see a series of pictures and use the keyboard and mouse.^
Some pictures are the same as in the Study phase ('old), others are 'new'.^
For each picture, recall if it is new or old.^
If new, then click that button.^
If old, then click on the time line to indicate when it was presented during the Study phase.^
</page>

<page endPage>
""End of experiment^^
Many thanks !!""
</page>

<instruct>
/ lastlabel = ("Press the spacebar to continue")
/ nextlabel = ("Press the spacebar to continue")
/ nextkey = (" ")
/ fontstyle = ("Arial", 20pt, false, false, false, false, 5)
</instruct>

<item encpics>
/1= "p101belt02a.jpg"
/2= "p102bench01.jpg"
/3= "p103birdhouse.jpg"
/4= "p104bottleofredwine01.jpg"
/5= "p105boxingglove02a.jpg"
/6= "p106bust.jpg"
/7= "p107button03.jpg"
/8= "p108camera01b.jpg"
/9= "p109candelabra.jpg"
/10= "p110candy.jpg"
/11= "p111cello.jpg"
/12= "p112cessna.jpg"
/13= "p113chain01.jpg"
/14= "p114chainsaw.jpg"
/15= "p115chair.jpg"
/16= "p116clock01a.jpg"
/17 = "p117clothespin01.jpg"
/18 = "p118comb01b (1).jpg"
/19 = "p119cookingpot.jpg"
/20 = "p120corkscrew03c.jpg"
/21 = "p121cornet.jpg"
/22 = "p122cracker02.jpg"
/23 = "p123dice02a.jpg"
/24 = "p124electricguitar01.jpg"
/25 = "p125electrictoothbrush01c.jpg"
/26 = "p126fan.jpg"
/27 = "p127fence02.jpg"
/28 = "p128ferry.jpg"
/29 = "p129fireextinguisher02.jpg"
/30 = "p130flashlight03a.jpg"
/31 = "p131fork04b.jpg"
/32 = "p132gardenshears01a.jpg"
/33 = "p133glasses01b.jpg"
/34 = "p134hairdryer01b.jpg"
/35 = "p135hanger04.jpg"
/36 = "p136hat05.jpg"
/37 = "p137highlighter03b.jpg"
/38 = "p138iron01a.jpg"
/39 = "p139key01.jpg"
/40 = "p140kite.jpg"
/41 = "p141lamp02a.jpg"
/42 = "p142lightbulb02a.jpg"
/43 = "p143lock02b.jpg"
/44 = "p144magnifyingglass01a.jpg"
/45 = "p145masquerademask02b.jpg"
/46 = "p146microphone01.jpg"
/47 = "p147feather01.jpg"
/48 = "p148pencilsharpener03a.jpg"
/49 = "p149pylon01.jpg"
/50 = "p150saltshaker02b.jpg"
/51 = "p151scissors02a.jpg"
/52 = "p152stapler01.jpg"
/53 = "p153thumbtack02b (1).jpg"
/54 = "p154tongs01a.jpg"
/55 = "p155handmixer01a.jpg"
/56 = "p156croissant02b.jpg"
</item>

<picture studypic>
/ items=encpics
/ position = (50%, 50%)
/ height = 20%
/ erase=false
</picture>

<picture testpic>
/ items=encpics
/ position = (50%, 40%)
/ height = 20%
</picture>

<text encTaskReminder>
/ items = ("Study phase~n~nPress:~nL: larger than football;~nS: smaller than football")
/ position = (50%, 15%)
/ txcolor = (255, 255, 255)
/ fontstyle = ("Arial", 20pt)
/ txbgcolor = (transparent)
// size=(200, 50)
</text>

<text testTaskReminder>
/ items = ("Test phase")
/ position = (50%, 15%)
/ txcolor = (255, 255, 255)
/ fontstyle = ("Arial", 20pt)
/ txbgcolor = (transparent)
// size=(200, 50)
</text>

<shape focuspoint>
/ shape= rectangle
/ color = (128, 128, 128)
/ size = (400, 400)
/ position = (50%, 50%)
/ erase = false
</shape>

<text errormessage>
/ items = ("Please respond s or l !!")
/ txcolor = white
/ txbgcolor = (transparent)
/ size=(600, 50)
/ fontstyle = ("Arial", 20pt)
/ position = (50%,70%)
</text>


*************************************************
Creating trials
*************************************************
Encoding trial
<trial encTrial>
/ stimulustimes = [100=studypic; 3500=focuspoint]
/ beginresponseframe = 1
/ inputdevice = keyboard
/ validresponse = ("s","l","S","L")
/ correctresponse = ("s","l","S","L")
/ beginresponsetime = 700
/ responseinterrupt = trial
/ trialduration = 4500
</trial>

Test trial: first asks about old vs. new, then slider or nothing, respectively
<text testNewText>
/ items = ("You answered: new picture")
/ txcolor = white
/ txbgcolor = (transparent)
/ fontstyle = ("Arial", 20pt)
</text>

<trial testNewTrial>
/ stimulustimes = [10=testNewText;]
/ trialduration = 3000 // duration should not be much shorter than the slider trial, else pps gain time by saying 'new'
</trial>

<text testTrialOldNewInstr>
/ items = ("Press o if seen before, and press n if new...")
/ position = (50%, 60%)
/ txcolor = (255, 255, 255)
/ fontstyle = ("Arial", 20pt)
/ txbgcolor = (transparent)
</text>

<text testTrialSliderInstr>
/ items = ("in previous series, presented at ...?")
/ position = (50%, 60%)
/ txcolor = (255, 255, 255)
/ fontstyle = ("Arial", 20pt)
/ txbgcolor = (transparent)
</text>

<slidertrial testSlider>
/ stimulustimes = [1000=testTrialSliderInstr; ]
/ buttonlabel = "Press to continue"
/ position = (50, 70)
/ size = (40%,10%)
/ range = (1,80)
/ increment = 1
/ showticks = false
/ labels = ("start","middle","end",)
/ fontstyle = ("Arial", 20pt)
/ txbgcolor = (transparent)
</slidertrial>

<trial testTrialOldNew>
/ stimulustimes = [1000=testpic,testTrialOldNewInstr; ]
/ inputdevice = keyboard
/ validresponse=("o", "n")
/ branch=[if (trial.testTrialOldNew.responsetext == "n") trial.testNewTrial] // for new-response
/ branch=[if (trial.testTrialOldNew.responsetext == "o") trial.testSlider] // for 'old' response, show slider
</trial>



*************************************************
Creating blocks
*************************************************
<block encBlock>
/ preinstructions = (encInstrPage)
/ trials = [1-40 = noreplace(encTrial)]
/ bgstim = (encTaskReminder)
/ screencolor = (128, 128, 128)
/ errormessage = true(errormessage, 2500)
</block>

<block testBlock>
/ preinstructions = (testInstrPage)
/ trials = [1-56 = noreplace(testTrialOldNew)]
/ bgstim = (testTaskReminder)
/ screencolor = (128, 128, 128)
</block>

*************************************************
Creating an Experiment
*************************************************
<expt tmem>
/ preinstructions = (introPage, taskPage)
/ blocks = [1=encBlock; 2=testBlock]
/ postinstructions = (endPage)
</expt>

<survey tmemSurvey>
/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)
/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)
/ itemspacing = 2%
/ showpagenumbers = false
</survey>



<defaults>
/ fontstyle = ("Arial", 20pt)
/ posttrialpause = 500
/ screencolor = (128, 128, 128)
</defaults>


Attachments
tmeminq.iqx (39 views, 7.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search