Code modification


Author
Message
Nesard
Nesard
Esteemed Member (2.5K reputation)Esteemed Member (2.5K reputation)Esteemed Member (2.5K reputation)Esteemed Member (2.5K reputation)Esteemed Member (2.5K reputation)Esteemed Member (2.5K reputation)Esteemed Member (2.5K reputation)Esteemed Member (2.5K reputation)Esteemed Member (2.5K reputation)
Group: Forum Members
Posts: 17, Visits: 153
Hi,

I am modifying a code of a previous experiment but haven't be able to do the following:
1. When I click on "Confirmar respuesta" with out selecting an option before, the image disappears. I'd like that the image wouldn't disapear.
2. I've used the /txcolor attribute to change the Text Color of the Sliders. However, I haven't be able to apply that color to the labels. Is there a way I can do that?
3. I need to use two randomization criteria: 1) Emotion Class (Negative, Neutral or Positive) and 2) Type of Question (p1, p2 and p3 are the three types of questions I have). No Emotion Class or Type of Question should be repeated more than 3 times.

I'd really appreciate your help. I'm using <slider>, but if it is better to use <likert> or any other element, it would be ok for me.

This is an example of the randomization I have at this moment:
1. Positive Image 4 - p1
2. Positive Image 4 - p2
3. Positive Image 4 - p3
4. Neutral Image 7 - p1
5. Neutral Image 7 - p2
6. Neutral Image 7 - p3
7. Negative Image 3 - p1
8. Negative Image 3 - p2
9. Negative Image 3 - p3

This is an example of the randomization I want to achieve:
1. Positive Image 4 - p2
2. Negative Image 3 - p3
3. Positive Image 4 - p3
4. Negative Image 3 - p2
5. Neutral Image 7 - p1
6. Positive Image 4 - p1
7. Neutral Image 7 - p2
8. Neutral Image 7 - p3

Here is my code:

<defaults>
/screencolor = white
/font = ("Helvetica", -16, 700, 0, 49)
/txbgcolor=(50,49,50)
</defaults>

<values>
/responsestoring = true
/ positive1item = 1
/ negative1item = 1
/ neutral1item = 1
/ positive2item = 1
/ negative2item = 1
/ neutral2item = 1
</values>

<data>
/ file = "contagioEmocional_rawdata.iqdat"
/ columns = [build, date, time, subject, group, blockcode, blocknum, trialcode, trialnum, response, latency, correct, stimulusitem, response]
/ separatefiles = true
</data>

<summarydata >
/file = "contagioEmocional_summary.iqdat"
/columns = [script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime]
</summarydata>

<expt>
/ blocks = [1 = POFA1; 2 = POFA2]
</expt>

<variables>
/ group = (1 of 3) (estadoBase = estado_base_positivo)
/ group = (2 of 3) (estadoBase = estado_base_neutral)
/ group = (3 of 3) (estadoBase = estado_base_negativo)
</variables>

========
BLOCKS
========

<block POFA1>
/ preinstructions = (instruccionesPOFA)
/ trials = [1-21 = list.triallist1]
/ recorddata = true
</block>

<block POFA2>
/ preinstructions = (instruccionesPOFA)
/ trials = [1-21 = list.triallist2]
/ recorddata = true
</block>

=============
POFA1 ITEMS
=============

ITEMS POFA1
<item POFA1negatives>
/1 = "POFA1/Negativo-Hombre-018.TIF"
/2 = "POFA1/Negativo-Hombre-025.TIF"
/3 = "POFA1/Negativo-Hombre-030.TIF"
/4 = "POFA1/Negativo-Mujer-003.TIF"
/5 = "POFA1/Negativo-Mujer-010.TIF"
/6 = "POFA1/Negativo-Mujer-044.TIF"
/7 = "POFA1/Negativo-Mujer-053.TIF"
</item>

<item POFA1neutrals>
/1 = "POFA1/Neutral-Hombre-021.TIF"
/2 = "POFA1/Neutral-Hombre-028.TIF"
/3 = "POFA1/Neutral-Hombre-033.TIF"
/4 = "POFA1/Neutral-Hombre-041.TIF"
/5 = "POFA1/Neutral-Mujer-072.TIF"
/6 = "POFA1/Neutral-Mujer-092.TIF"
/7 = "POFA1/Neutral-Mujer-099.TIF"
</item>

<item POFA1positives>
/1 = "POFA1/Positivo-Hombre-014.TIF"
/2 = "POFA1/Positivo-Hombre-029.TIF"
/3 = "POFA1/Positivo-Hombre-034.TIF"
/4 = "POFA1/Positivo-Mujer-057.TIF"
/5 = "POFA1/Positivo-Mujer-073.TIF"
/6 = "POFA1/Positivo-Mujer-085.TIF"
/7 = "POFA1/Positivo-Mujer-093.TIF"
</item>

ITEMS POFA2
<item POFA2negatives>
/1 = "POFA2/Negativo-Hombre-038.TIF"
/2 = "POFA2/Negativo-Hombre-080.TIF"
/3 = "POFA2/Negativo-Hombre-105.TIF"
/4 = "POFA2/Negativo-Mujer-061.TIF"
/5 = "POFA2/Negativo-Mujer-069.TIF"
/6 = "POFA2/Negativo-Mujer-089.TIF"
/7 = "POFA2/Negativo-Mujer-096.TIF"
</item>

<item POFA2neutrals>
/1 = "POFA2/Neutral-Hombre-083.TIF"
/2 = "POFA2/Neutral-Hombre-110.TIF"
/3 = "POFA2/Neutral-Mujer-006.TIF"
/4 = "POFA2/Neutral-Mujer-013.TIF"
/5 = "POFA2/Neutral-Mujer-047.TIF"
/6 = "POFA2/Neutral-Mujer-056.TIF"
/7 = "POFA2/Neutral-Mujer-065.TIF"
</item>

<item POFA2positives>
/1 = "POFA2/Positivo-Hombre-074.TIF"
/2 = "POFA2/Positivo-Hombre-100.TIF"
/3 = "POFA2/Positivo-Hombre-101.TIF"
/4 = "POFA2/Positivo-Mujer-001.TIF"
/5 = "POFA2/Positivo-Mujer-007.TIF"
/6 = "POFA2/Positivo-Mujer-042.TIF"
/7 = "POFA2/Positivo-Mujer-048.TIF"
</item>

<slider p1>
/ caption="¿Cómo crees que se siente esta persona?"
/ labels=("Nada mal", "Un poco mal", "Mal", "Muy mal")
/ range = (1, 4)
/ position = (32, 70)
/ slidersize = (30,10)
/ increment = 1
/ required = true
/ defaultresponse = "2"
/ txcolor = (220, 30, 42)
/ slidersize = (60, 50)
/ position = (20, 70%)
</slider>

<slider p2>
/ caption="¿Cómo crees que se siente esta persona?"
/ labels=("Nada bien", "Un poco bien", "Bien", "Muy bien")
/ range = (1, 4)
/ position = (32, 70)
/ slidersize = (30,10)
/ increment = 1
/ required = true
/ defaultresponse = "2"
/ txcolor = (31, 148, 71)
/ slidersize = (60, 50)
/ position = (20, 70%)
</slider>

<slider p3>
/ caption="¿Cómo crees que se siente esta persona?"
/ labels=("Nada inquieto ", "Un poco inquieto", "Inquieto", "Muy inquieto")
/ range = (1, 4)
/ position = (32, 70)
/ slidersize = (30,10)
/ increment = 1
/ required = true
/ defaultresponse = "2"
/ txcolor = (27, 117, 187)
/ slidersize = (60, 50)
/ position = (20, 70%)
</slider>

===============
INSTRUCTIONS
===============

<instruct>
/windowsize = (65%, 85%)
/ fontstyle = ("Helvetica", 2%, false, false, false, false, 5, 1)
/ txcolor = (black)
/ finishlabel = "Presiona la tecla Enter continuar"
/ nextkey = (28)
/ nextlabel = "Presiona la tecla Enter para continuar"
/ prevkey = (57)
/ prevlabel = "Presiona la barra espaciadora para volver atrás"
</instruct>

<page instruccionesPOFA>
A continuación verás una serie de fotografías de diferentes personas.

Para cada fotografía deberás responder tres preguntas, usando las barras horizontales que se encuentran en la parte inferior de la pantalla. Después de seleccionar tu respuesta, deberás hacer clic en "Confirmar respuesta"^^

Debes prestar mucha atención a las opciones de respuesta, porque el enunciado será el mismo en todos los casos, pero las opciones de respuesta cambiarán.^^

Avanza tan rápido como puedas respondiendo con la primer impresión que te genere cada imágen. Si piensas demasiado tu respuesta se generarán resultados difíciles de interpretar.^^
</page>

POFA 1 SEQUENCE
<surveypage negative1>
/ ontrialbegin = [values.negative1item = list.neg1_items.nextindex]
/ questions=[1=p1]
/ stimulusframes = [1 = POFA1negative]
/ finishlabel = "Confirmar respuesta"
/ branch = [surveypage.negative1_2]
</surveypage>

<surveypage negative1_2>
/ questions=[1=p2]
/ stimulusframes = [1 = POFA1negative]
/ finishlabel = "Confirmar respuesta"
/ branch = [surveypage.negative1_3]
</surveypage>

<surveypage negative1_3>
/ questions=[1=p3]
/ stimulusframes = [1 = POFA1negative]
/ finishlabel = "Confirmar respuesta"
</surveypage>

<surveypage neutral1>
/ ontrialbegin = [values.neutral1item = list.neu1_items.nextindex]
/ questions=[1=p1]
/ finishlabel = "Confirmar respuesta"
/ stimulusframes = [1 = POFA1neutral]
/ branch = [surveypage.neutral1_2]
</surveypage>

<surveypage neutral1_2>
/ questions=[1=p2]
/ finishlabel = "Confirmar respuesta"
/ stimulusframes = [1 = POFA1neutral]
/ branch = [surveypage.neutral1_3]
</surveypage>

<surveypage neutral1_3>
/ questions=[1=p3]
/ finishlabel = "Confirmar respuesta"
/ stimulusframes = [1 = POFA1neutral]
</surveypage>

<surveypage positive1>
/ ontrialbegin = [values.positive1item = list.pos1_items.nextindex]
/ questions=[1 = p1]
/ stimulusframes = [1 = POFA1positive]
/ finishlabel = "Confirmar respuesta"
/ branch = [surveypage.positive1_2]
</surveypage>

<surveypage positive1_2>
/ questions=[1 = p2]
/ stimulusframes = [1 = POFA1positive]
/ finishlabel = "Confirmar respuesta"
/ branch = [surveypage.positive1_3]
</surveypage>

<surveypage positive1_3>
/ questions=[1 = p3]
/ stimulusframes = [1 = POFA1positive]
/ finishlabel = "Confirmar respuesta"
</surveypage>

POFA 2 SEQUENCE
<surveypage negative2>
/ ontrialbegin = [values.negative2item = list.neg2_items.nextindex]
/ questions=[1=p1]
/ stimulusframes = [1 = POFA2negative]
/ finishlabel = "Confirmar respuesta"
/ branch = [surveypage.negative2_2]
</surveypage>

<surveypage negative2_2>
/ questions=[1=p2]
/ stimulusframes = [1 = POFA2negative]
/ finishlabel = "Confirmar respuesta"
/ branch = [surveypage.negative2_3]
</surveypage>

<surveypage negative2_3>
/ questions=[1=p3]
/ stimulusframes = [1 = POFA2negative]
/ finishlabel = "Confirmar respuesta"
</surveypage>

<surveypage neutral2>
/ ontrialbegin = [values.neutral2item = list.neu2_items.nextindex]
/ questions=[1=p1]
/ finishlabel = "Confirmar respuesta"
/ stimulusframes = [1 = POFA2neutral]
/ branch = [surveypage.neutral2_2]
</surveypage>

<surveypage neutral2_2>
/ questions=[1=p2]
/ finishlabel = "Confirmar respuesta"
/ stimulusframes = [1 = POFA2neutral]
/ branch = [surveypage.neutral2_3]
</surveypage>

<surveypage neutral2_3>
/ questions=[1=p3]
/ finishlabel = "Confirmar respuesta"
/ stimulusframes = [1 = POFA2neutral]
</surveypage>

<surveypage positive2>
/ ontrialbegin = [values.positive2item = list.pos2_items.nextindex]
/ questions=[1 = p1]
/ stimulusframes = [1 = POFA2positive]
/ finishlabel = "Confirmar respuesta"
/ branch = [surveypage.positive2_2]
</surveypage>

<surveypage positive2_2>
/ questions=[1 = p2]
/ stimulusframes = [1 = POFA2positive]
/ finishlabel = "Confirmar respuesta"
/ branch = [surveypage.positive2_3]
</surveypage>

<surveypage positive2_3>
/ questions=[1 = p3]
/ stimulusframes = [1 = POFA2positive]
/ finishlabel = "Confirmar respuesta"
</surveypage>

POFA 1 IMAGES
<picture POFA1positive>
/items = POFA1positives
/select = values.positive1item
/size = (60%, 60%)
/position = (50%, 35%)
</picture>

<picture POFA1negative>
/items = POFA1negatives
/select = values.negative1item
/size = (60%, 60%)
/position = (50%, 35%)
</picture>

<picture POFA1neutral>
/items = POFA1neutrals
/select = values.neutral1item
/size = (60%, 60%)
/position = (50%, 35%)
</picture>

POFA 2 IMAGES
<picture POFA2positive>
/items = POFA2positives
/select = values.positive2item
/size = (60%, 60%)
/position = (50%, 35%)
</picture>

<picture POFA2negative>
/items = POFA2negatives
/select = values.negative2item
/size = (60%, 60%)
/position = (50%, 35%)
</picture>

<picture POFA2neutral>
/items = POFA2neutrals
/select = values.neutral2item
/size = (60%, 60%)
/position = (50%, 35%)
</picture>

=======
LISTS
=======

POFA 1 LISTS
<list neg1_items>
/ poolsize = 7
</list>

<list neu1_items>
/ poolsize = 7
</list>

<list pos1_items>
/ poolsize = 7
</list>

<list triallist1>
/ items = (surveypage.positive1, surveypage.neutral1, surveypage.negative1)
/ poolsize = 21
/ maxrunsize = 2
</list>

POFA 2 LISTS
<list neg2_items>
/ poolsize = 7
</list>

<list neu2_items>
/ poolsize = 7
</list>

<list pos2_items>
/ poolsize = 7
</list>

<list triallist2>
/ items = (surveypage.positive2, surveypage.neutral2, surveypage.negative2)
/ poolsize = 21
/ maxrunsize = 2



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search