Group: Forum Members
Posts: 14,
Visits: 53
|
+x+xHi, I am doing an experiment that consists of participants being presented with 4 images, and then an advert appearing for a few m/s and then disappearing. The location and colour of this advert (which is coded as an image) is random. I have 2 questions about this. 1. How can I code the data to show which location and colour was shown to the participant, so I know what they saw, when looking at the collected data? 2. At the moment, I have coded the positions of the advert by having 4 <picture> elements and their position being defined as shown below: <picture adverttopleft> /items = newsign /select = 1 / position = (30,45) / size = (20%,20%) </picture> Is this the best way of doing this, or is there a way to code the image to be positioned randomly in 1 of 4 locations? . I have coded the trials for one colour of advert (see example of trial code below, this is 1 of 10), but I want to add 3 more variations of the colour of the advert. Would it be best to have a trial per colour and then a block that includes the 4 trials (that have each of the four colours of advert)? OR is there a way of randomising the colour and position of the advert within one trial? <trial trial1> /ontrialbegin = [values.condition = "C1 Raincoat"] /ontrialbegin = [values.currentsoa = list.SOAS_all.nextvalue] /ontrialbegin = [values.soa_remaining = values.currentsoa] /stimulustimes = [1000 = background; 1000 = fixation; 2000 = eraser; 2001 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR; 2500 = noreplace (picture.advertbottomleft,picture.advertbottomright, picture.adverttopleft, picture.adverttopright); 2650 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR;] /beginresponsetime = (2500+ values.soa_remaining) /inputdevice=mouse /validresponse=(picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR) /correctresponse = (picture.advertbottomleft,picture.advertbottomright, picture.adverttopleft, picture.adverttopright) /ontrialend = [if (trial.trial1.correct) {values.countcorrect +=1; values.sumrt += trial.trial1.latency}] /ontrialend = [values.x=trial.trial1.responsex;values.y=trial.trial1.responsey] /recorddata = true I hope these questions are clear and that someone can help me! Many thanks in advance. > 1. How can I code the data to show which location and colour was shown to the participant, so I know what they saw, when looking at the collected data? As for the color, you use images. I don't know what color a given image item has, and neither does Inquisit. You would have to derive the color shown from the logged item number that was presented during the given trial. > Is this the best way of doing this, or is there a way to code the image to be positioned randomly in 1 of 4 locations? You can achieve random positioning by using <list> elements holding the coordinates for the four positions and the sampling from those at random. I.e. <values> / h = 0% / v = 0% </values> <picture advert> /items = newsign /select = 1 / hposition = values.h / vposition = values.v/ size = (20%,20%) </picture> // the four positions as h / v coordinate pairs <list hlist> / items = (30%, 70%, 30%, 70%) </list> <list vlist> / items = (45%, 45%, 65%, 65%) / selectionmode = list.hlist.currentindex </list> <trial trial1> / ontrialbegin = [values.h = list.hlist.nextvalue; values.v = list.vlist.nextvalue;]/ontrialbegin = [values.condition = "C1 Raincoat"] /ontrialbegin = [values.currentsoa = list.SOAS_all.nextvalue] /ontrialbegin = [values.soa_remaining = values.currentsoa] /stimulustimes = [1000 = background; 1000 = fixation; 2000 = eraser; 2001 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR; 2500 = picture.advert;2650 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR;] ... </trial> You can then log values.h and values.v to the data file if need be. Thank you so much for your response Dave. I think I wasn't clear enough in the first question, what I meant was, if I have coded the image to be selected and shown to the participant randomly from a list, how do I get the data (that is generated once the participant has completed the study) to show which image they were shown? Because the image was chosen at random, at the moment I don't have a way of seeing what image was shown to the participant. This is the code I have for my data at the moment: <data> / separatefiles = true / columns = (build, date, time, subject, group, blockcode, trialcode, trialnum, values.countcorrect, values.condition, values.currentSOA, trialduration, response, correct, latency, values.sumrt, values.x, values.y) </data> <summarydata> /columns = (script.startdate, script.starttime, script.subjectid, script.elapsedtime, computer.platform, values.completed, expressions.meanrt) / separatefiles = true </summarydata> <values> /completed = 0 /currentSOA = 0 /condition = "" /soa_remaining = 0 /catch_duration = 0 /counttrials = 0 /countcorrect = 0 /sumrt= 0 /x = 0 /y = 0
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
+xHi, I am doing an experiment that consists of participants being presented with 4 images, and then an advert appearing for a few m/s and then disappearing. The location and colour of this advert (which is coded as an image) is random. I have 2 questions about this. 1. How can I code the data to show which location and colour was shown to the participant, so I know what they saw, when looking at the collected data? 2. At the moment, I have coded the positions of the advert by having 4 <picture> elements and their position being defined as shown below: <picture adverttopleft> /items = newsign /select = 1 / position = (30,45) / size = (20%,20%) </picture> Is this the best way of doing this, or is there a way to code the image to be positioned randomly in 1 of 4 locations? . I have coded the trials for one colour of advert (see example of trial code below, this is 1 of 10), but I want to add 3 more variations of the colour of the advert. Would it be best to have a trial per colour and then a block that includes the 4 trials (that have each of the four colours of advert)? OR is there a way of randomising the colour and position of the advert within one trial? <trial trial1> /ontrialbegin = [values.condition = "C1 Raincoat"] /ontrialbegin = [values.currentsoa = list.SOAS_all.nextvalue] /ontrialbegin = [values.soa_remaining = values.currentsoa] /stimulustimes = [1000 = background; 1000 = fixation; 2000 = eraser; 2001 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR; 2500 = noreplace (picture.advertbottomleft,picture.advertbottomright, picture.adverttopleft, picture.adverttopright); 2650 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR;] /beginresponsetime = (2500+ values.soa_remaining) /inputdevice=mouse /validresponse=(picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR) /correctresponse = (picture.advertbottomleft,picture.advertbottomright, picture.adverttopleft, picture.adverttopright) /ontrialend = [if (trial.trial1.correct) {values.countcorrect +=1; values.sumrt += trial.trial1.latency}] /ontrialend = [values.x=trial.trial1.responsex;values.y=trial.trial1.responsey] /recorddata = true I hope these questions are clear and that someone can help me! Many thanks in advance. > 1. How can I code the data to show which location and colour was shown to the participant, so I know what they saw, when looking at the collected data? As for the color, you use images. I don't know what color a given image item has, and neither does Inquisit. You would have to derive the color shown from the logged item number that was presented during the given trial. > Is this the best way of doing this, or is there a way to code the image to be positioned randomly in 1 of 4 locations? You can achieve random positioning by using <list> elements holding the coordinates for the four positions and the sampling from those at random. I.e. <values> / h = 0% / v = 0% </values> <picture advert> /items = newsign /select = 1 / hposition = values.h / vposition = values.v/ size = (20%,20%) </picture> // the four positions as h / v coordinate pairs <list hlist> / items = (30%, 70%, 30%, 70%) </list> <list vlist> / items = (45%, 45%, 65%, 65%) / selectionmode = list.hlist.currentindex </list> <trial trial1> / ontrialbegin = [values.h = list.hlist.nextvalue; values.v = list.vlist.nextvalue;]/ontrialbegin = [values.condition = "C1 Raincoat"] /ontrialbegin = [values.currentsoa = list.SOAS_all.nextvalue] /ontrialbegin = [values.soa_remaining = values.currentsoa] /stimulustimes = [1000 = background; 1000 = fixation; 2000 = eraser; 2001 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR; 2500 = picture.advert;2650 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR;] ... </trial> You can then log values.h and values.v to the data file if need be.
|
Group: Forum Members
Posts: 14,
Visits: 53
|
Hi,
I am doing an experiment that consists of participants being presented with 4 images, and then an advert appearing for a few m/s and then disappearing. The location and colour of this advert (which is coded as an image) is random. I have 2 questions about this. 1. How can I code the data to show which location and colour was shown to the participant, so I know what they saw, when looking at the collected data? 2. At the moment, I have coded the positions of the advert by having 4 <picture> elements and their position being defined as shown below: <picture adverttopleft> /items = newsign /select = 1 / position = (30,45) / size = (20%,20%) </picture> Is this the best way of doing this, or is there a way to code the image to be positioned randomly in 1 of 4 locations? . I have coded the trials for one colour of advert (see example of trial code below, this is 1 of 10), but I want to add 3 more variations of the colour of the advert. Would it be best to have a trial per colour and then a block that includes the 4 trials (that have each of the four colours of advert)? OR is there a way of randomising the colour and position of the advert within one trial?
<trial trial1> /ontrialbegin = [values.condition = "C1 Raincoat"] /ontrialbegin = [values.currentsoa = list.SOAS_all.nextvalue] /ontrialbegin = [values.soa_remaining = values.currentsoa]
/stimulustimes = [1000 = background; 1000 = fixation; 2000 = eraser; 2001 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR; 2500 = noreplace (picture.advertbottomleft,picture.advertbottomright, picture.adverttopleft, picture.adverttopright); 2650 = picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR;] /beginresponsetime = (2500+ values.soa_remaining) /inputdevice=mouse /validresponse=(picture.c1_TL, picture.c1_TR, picture.c1_BL, picture.c1_BR) /correctresponse = (picture.advertbottomleft,picture.advertbottomright, picture.adverttopleft, picture.adverttopright) /ontrialend = [if (trial.trial1.correct) {values.countcorrect +=1; values.sumrt += trial.trial1.latency}] /ontrialend = [values.x=trial.trial1.responsex;values.y=trial.trial1.responsey] /recorddata = true
I hope these questions are clear and that someone can help me! Many thanks in advance.
|