vary instruction page by group


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
Yes, of course. Set the <expt>s' /groupassignment attributes to 'groupnumber'.

Diane
Diane
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 53, Visits: 131
Is there a way to set values (in an Expt element) by group number rather than subject number?

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
The <variables> element is documented in the language reference, however it is not indexed because it is considered (mostly) obsolete.





Diane
Diane
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 53, Visits: 131
Thanks!
Still, it would be helpful to have a page in the manual that explains the use of variables and values. It might save you a lot of time by not having to respond to these types of questions.
I do appreciate your quick and helpful response though!

Diane

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
The <variables> element substitutes *elements* based on groups, as in

<variables>
/ group = (1 of 2) (mytext = group1text)
/ group = (2 of 2) (mytext = group2text)
</variables>

<trial mytrial>
/ stimulusframes = [1=mytext]
...
</trial>

<text group1text>
/ items = ("Group 1")
...
</text>

<text group2text>
/ items = ("Group 2")
...
</text>

Note the complete *absence* of any element called <text mytext> -- that is what is substituted via <variables>.

If you want to use <variables> in your particular case, you need to substitute entire <page> elements in the same way as demonstrated above with <text> elements.

Alternatively, you'll simply want to do:

<values>
/ redkey = ""
/ bluekey = ""
</values>

<expt>
/ onexptbegin = [values.redkey="left"; values.bluekey="right"]
/ subjects = (1 of 2)
...
</expt>

<expt>
/ onexptbegin = [values.redkey="right"; values.bluekey="left"]
/ subjects = (2 of 2)
...
</expt>

<page intro>
^Welcome to this study!
^^A red or a blue square will appear on either the left or the right side of the screen.
^^Press the *<%values.bluekey%> shift key* as quickly as possible whenever you see the
*blue square*.
^^Whenever you see the *red square*, press the *<%values.redkey%> shift key* as quickly as possible.
</page>

Diane
Diane
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 53, Visits: 131
Hi,

I wanted to vary the instruction page text by group like this:

<variables>
/group = (1 of 2)(redkey = "left", bluekey = "right")
/group = (2 of 2)(redkey = "right", bluekey = "left")
</variables>

<page intro>
^Welcome to this study!
^^A red or a blue square will appear on either the left or the right side of the screen.
^^Press the *<%bluekey%> shift key* as quickly as possible whenever you see the
*blue square*.
^^Whenever you see the *red square*, press the *<%redkey%> shift key* as quickly as possible.
</page>

When I try to run it I get an error message that bluekey and redkey are invalid expressions. How can I set parts of a page element based on group?

More generally, I keep having trouble when I use variables. Where can I find an overview and introduction of the ways in which variables can be used?

Thanks a lot
Diane

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search