Elegance and randomisation


Author
Message
Psych_Josh
Psych_Josh
Guru (11K reputation)Guru (11K reputation)Guru (11K reputation)Guru (11K reputation)Guru (11K reputation)Guru (11K reputation)Guru (11K reputation)Guru (11K reputation)Guru (11K reputation)
Group: Forum Members
Posts: 85, Visits: 397
Dear Inquisit forum,

I have a query regarding the aforementioned subject title, and have attached my script.

Firstly, I was wondering if there as a way to make parts of my script more elegant - currently it is functional, but I feel as if I've taken quite a brutal, inelegant approach to it, entirely due to my lack of skills as a programmer. 

For example, in the 'Practice trials' section, I have one of three different stimuli randomly appearing after a key-press (spacebar) - either a green, red, or blue circle, staying on screen for 400ms, and then the participant is asked to judge the time interval between keypress and the image appearing (between 0-900ms). Currently I have these three stimuli in separate trials, but I was wondering if there was a simpler method of having them all in the same 'trial', as it were. No data needs to be recorded during these trials, so I don't require any stimuli values to be recorded.

Equally, I have the same issue with the experimental trials, under 'Scenarios'. There are four possible combinations between a scenario and an outcome - good(scenario)-good(outcome), good-bad, bad-good, and bad-bad. The scenarios are in the stimuli section (both the 'good' and the 'bad' version), as well as both the 'good' and 'bad' outcomes. Currently I have 'Scenario 1' scripted, and it is functional. However, again it feels like an awfully brutal approach. There are 20 scenarios, with good and bad versions (thus, 40 in total), and I was wondering if there was a method to not having an awfully long script. Each participant should only experience one scenario (either the good or bad version) once, such that there should be 20 'trials' (i.e. different scenarios) in total per participant. I am aiming to recruit 80 participants ideally, so, additionally, each possible scenario (both the good and bad versions) should be seen an equal number of times, with both outcomes having been produced equally across all participants (40 possible scenarios x 2 outcomes). 

A final query is the recording of which scenario took place - I currently have values.scenario set as /ontrialend = [values.scenario = good/bad], but I was wondering if it were possible to have this information recorded in the stimuli trial (e.g., trial.trialS01G), so that both the scenario and the stimulus-outcome are recorded on the same data line.

Many thanks, apologies if any of my explanation was confusing - I will happily clarify if required.
Josh
Attachments
Justice_Binding_1509.iqx (590 views, 42.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