Millisecond Forums

I Need Help with the AMP

https://forums.millisecond.com/Topic27879.aspx

By Nicobu - 10/15/2019

Hello, I've been trying to display 4 groups of stimulus in the AMP (PrimeA, PrimeB, PrimeC, PrimeD) and Neutral; I only get the PrimeA and PrimeB images on the experiment and i've issues with my data, The PrimeA has a correct response of  "Pleasant" and PrimeB, PrimeC, PrimeD has a correct response of "Unpleasant" but in the data I can´t get it.  (My description in the code is in spanish, but it's the same logic as the original AMP, I didn't change the parameters there, just add the 100-primeC and 100-PrimeD) 

I'll Aprecciate so much your help.
My code Is: 

<expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
/ c = trial.primeC.percentcorrect
/ d = trial.primeD.percentcorrect
</expressions> 

<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
response, correct, latency,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeC.totalpercentcorrect, trial.primeD.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect]
/separatefiles = true
</data>

<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

<text summary>
/ items = ("Usted juzgó <% (trial.primeA.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de una <% item.primeAlabel.item.1 %>

Usted juzgó <% (100 - trial.primeB.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeBlabel.item.1 %>

Usted juzgó <% (100 - trial.primeC.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeClabel.item.1 %>

Usted juzgó <% (100 - trial.primeD.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeDlabel.item.1 %> ")
/ size = (60%, 60%)
/ hjustify = left
</text>


<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 400=mask]
</trial>

<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
</trial>


<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeA.currentitemnumber ; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeB.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeC.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeD.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>

<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4-14 = noreplace(primeApractice, primeBpractice, primeCpractice, primeDpractice, primeNeutralpractice)]
/ recorddata = false
</block>

<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2-109 = noreplace(primeA, primeB, primeC, primeD, primeNeutral)]
</block>

<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

<expt>
/ blocks = [1=practice; 2=test; 3=summary]
/onexptend = [values.completed = 1]
</expt>


By Dave - 10/15/2019

Nicobu - 10/15/2019
Hello, I've been trying to display 4 groups of stimulus in the AMP (PrimeA, PrimeB, PrimeC, PrimeD) and Neutral; I only get the PrimeA and PrimeB images on the experiment and i've issues with my data, The PrimeA has a correct response of  "Pleasant" and PrimeB, PrimeC, PrimeD has a correct response of "Unpleasant" but in the data I can´t get it.  (My description in the code is in spanish, but it's the same logic as the original AMP, I didn't change the parameters there, just add the 100-primeC and 100-PrimeD) 

I'll Aprecciate so much your help.
My code Is: 

<expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
/ c = trial.primeC.percentcorrect
/ d = trial.primeD.percentcorrect
</expressions> 

<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
response, correct, latency,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeC.totalpercentcorrect, trial.primeD.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect]
/separatefiles = true
</data>

<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

<text summary>
/ items = ("Usted juzgó <% (trial.primeA.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de una <% item.primeAlabel.item.1 %>

Usted juzgó <% (100 - trial.primeB.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeBlabel.item.1 %>

Usted juzgó <% (100 - trial.primeC.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeClabel.item.1 %>

Usted juzgó <% (100 - trial.primeD.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeDlabel.item.1 %> ")
/ size = (60%, 60%)
/ hjustify = left
</text>


<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 400=mask]
</trial>

<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
</trial>


<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeA.currentitemnumber ; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeB.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeC.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeD.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>

<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4-14 = noreplace(primeApractice, primeBpractice, primeCpractice, primeDpractice, primeNeutralpractice)]
/ recorddata = false
</block>

<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2-109 = noreplace(primeA, primeB, primeC, primeD, primeNeutral)]
</block>

<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

<expt>
/ blocks = [1=practice; 2=test; 3=summary]
/onexptend = [values.completed = 1]
</expt>



Your practice trials all display PrimeB:

Should display primeA, but displays primeB:
<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 400=mask]
</trial>

This one's correct::
<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

Should display primeC, but displays primeB:
<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

Should display primeD, but displays primeB:
<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

This is clearly wrong.

Similarly, some of your test trials display the wrong stimulus.

Should display primeC, but displays primeA:
<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeC.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>

Should display primeD, but displays primeA:
<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeD.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>
By Nicobu - 10/15/2019

Dave - 10/15/2019
Nicobu - 10/15/2019
Hello, I've been trying to display 4 groups of stimulus in the AMP (PrimeA, PrimeB, PrimeC, PrimeD) and Neutral; I only get the PrimeA and PrimeB images on the experiment and i've issues with my data, The PrimeA has a correct response of  "Pleasant" and PrimeB, PrimeC, PrimeD has a correct response of "Unpleasant" but in the data I can´t get it.  (My description in the code is in spanish, but it's the same logic as the original AMP, I didn't change the parameters there, just add the 100-primeC and 100-PrimeD) 

I'll Aprecciate so much your help.
My code Is: 

<expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
/ c = trial.primeC.percentcorrect
/ d = trial.primeD.percentcorrect
</expressions> 

<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
response, correct, latency,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeC.totalpercentcorrect, trial.primeD.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect]
/separatefiles = true
</data>

<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

<text summary>
/ items = ("Usted juzgó <% (trial.primeA.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de una <% item.primeAlabel.item.1 %>

Usted juzgó <% (100 - trial.primeB.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeBlabel.item.1 %>

Usted juzgó <% (100 - trial.primeC.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeClabel.item.1 %>

Usted juzgó <% (100 - trial.primeD.percentcorrect) %> % de los caracteres chinos como <% item.attributeAlabel.item.1 %> cuando eran precedidos por una imagen de un <% item.primeDlabel.item.1 %> ")
/ size = (60%, 60%)
/ hjustify = left
</text>


<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 400=mask]
</trial>

<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
</trial>


<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeA.currentitemnumber ; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeB.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeC.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeD.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>

<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4-14 = noreplace(primeApractice, primeBpractice, primeCpractice, primeDpractice, primeNeutralpractice)]
/ recorddata = false
</block>

<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2-109 = noreplace(primeA, primeB, primeC, primeD, primeNeutral)]
</block>

<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

<expt>
/ blocks = [1=practice; 2=test; 3=summary]
/onexptend = [values.completed = 1]
</expt>



Your practice trials all display PrimeB:

Should display primeA, but displays primeB:
<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 400=mask]
</trial>

This one's correct::
<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

Should display primeC, but displays primeB:
<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

Should display primeD, but displays primeB:
<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
</trial>

This is clearly wrong.

Similarly, some of your test trials display the wrong stimulus.

Should display primeC, but displays primeA:
<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeC.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>

Should display primeD, but displays primeA:
<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeD.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
</trial>

Oh, thank you so much!! I'm sorry for that errors