Flanker Fish Summary Data


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: 104K
Revenger - Tuesday, November 21, 2017
Hello,
I'm having trouble creating a summarydata file. I wanted to make these columns:

Trialcount (how many trials administered), ValidCount (number of trials with latency >200 and <3000), CorrRaw (count of correct trials), CorrV (count of correct trials when prevalid = 1), %CorrRaw (CorrRaw/Trialcount *100), %CorrVal (CorrV/ValidCount *100), SDCorrRaw (standard deviation of correct trials), LatVal (count of number of correct latency trials--correct and latency between 200 and 3000), Latency (sum of latencies only for correct and valid trials), Mean Lat (Latency/LatVal), SDLatency (Standard deviation of valid latencies), TimeOut (count of trials with latency >3000), Antic (count of trials with latency <200), Quit (if %CorrRaw >=66, then Quit=1; else Quit=0)

for each of the three blocks: Pre, Post, and Mixed.

For example: PreTrialCount, PreValidCount, PreCorrRaw...PostTrialCount....MixedTrialCount...

I think I've figured out all of the columns except SDCorrRaw, Latency, SDLatency. Any help on how to program these would be great!

Also, whenever I try to run the test monkey, Inquisit says that my columns and expressions are invalid. What am I doing wrong?

Thank you very much!


There are many, many values that aren't defined anywhere in the script. There is no such thing as

<values>
...
/ PreValidCount = 0
...
</values>

or

<values>
...
/ PreCorrV = 0
...
</values>

defined anywhere in the script, and yet you reference such values in your blocks and trials as if they existed:

<block MiddleBlueTest>
/preinstructions = (IntroMiddleBlueTest)
/ trials=[1-14=list.MiddleBlueTest; 15 = end_cue_audio]
/ branch = [if (block.MiddleBlueTest.percentcorrect < 75) block.endish]

/ontrialend = [if (block.MiddleBlueTest.latency >= 200 && block.MiddleBlueTest.latency <= 3000) {values.PreValidCount +=1}]
/ontrialend = [if (values.PreValidCount +=1 && block.MiddleBlueTest.correct) {values.PreCorrV +=1}]
...
</block>

Those are just two examples, there are many more. I suggest you go through your script systematically and ensure that all values you need are indeed properly defined and named.

As for calculating standard deviations, you can look at how the IAT scripts do this as an example: https://www.millisecond.com/download/library/v4/iat/iat.iqx

Mathematically, what you'd do under Inquisit 4 is this: https://math.stackexchange.com/questions/198336/how-to-calculate-standard-deviation-with-streaming-inputs

Revenger
Revenger
Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)
Group: Forum Members
Posts: 1, Visits: 5
Hello,
I'm having trouble creating a summarydata file. I wanted to make these columns:

Trialcount (how many trials administered), ValidCount (number of trials with latency >200 and <3000), CorrRaw (count of correct trials), CorrV (count of correct trials when prevalid = 1), %CorrRaw (CorrRaw/Trialcount *100), %CorrVal (CorrV/ValidCount *100), SDCorrRaw (standard deviation of correct trials), LatVal (count of number of correct latency trials--correct and latency between 200 and 3000), Latency (sum of latencies only for correct and valid trials), Mean Lat (Latency/LatVal), SDLatency (Standard deviation of valid latencies), TimeOut (count of trials with latency >3000), Antic (count of trials with latency <200), Quit (if %CorrRaw >=66, then Quit=1; else Quit=0)

for each of the three blocks: Pre, Post, and Mixed.

For example: PreTrialCount, PreValidCount, PreCorrRaw...PostTrialCount....MixedTrialCount...

I think I've figured out all of the columns except SDCorrRaw, Latency, SDLatency. Any help on how to program these would be great!

Also, whenever I try to run the test monkey, Inquisit says that my columns and expressions are invalid. What am I doing wrong?

Thank you very much!


Attachments
Flanker Fish draft.iqx (342 views, 53.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