Ordering List Based on Standard Deviation


Author
Message
ivy.c
ivy.c
Associate Member (175 reputation)Associate Member (175 reputation)Associate Member (175 reputation)Associate Member (175 reputation)Associate Member (175 reputation)Associate Member (175 reputation)Associate Member (175 reputation)Associate Member (175 reputation)Associate Member (175 reputation)
Group: Forum Members
Posts: 11, Visits: 148
Hello,

I’m currently trying to sort through a list of RT’s and only create a list of values that are 3 standard deviations from the mean. I currently have the following variables:
/meanCorrRT_SD = list.corrRT_baseline_short.mean
/SD = list.corrRT_baseline_short.standarddeviation
/maxRT = expressions.meanCorrRT_SD + 3*expressions.SD

What I would like to do at the end of the block is to order the RT’s from the ‘corrRT_baseline_short’ list in ascending order but exclude values that are larger than the maxRT value. From that list, I would like to pick the 3rd number on that list. I have at the end of my block the following:
/ onblockend = [list.corrRT_baseline_short.sort(false,false);    
values.index = 3;
values.cutoff_RT = list.corrRT_baseline_short.item(values.index);
]
</block>

I believe I have figured out how to calculate the SD, but I am unsure how to exclude and order the list (and therefore, change the /onblockend script accordingly). Any help would be appreciated. Thank you!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
ivy.c - 3 Years Ago
Dave - 3 Years Ago
             In a nutshell:
Dave - 3 Years Ago
ivy.c - 3 Years Ago
                     > To confirm, is the <list exampleRTs> equivalent to what I...
Dave - 3 Years Ago
                         Thanks for confirming! I am running this script using Inquisit 6 so...
ivy.c - 3 Years Ago
                             Give me the actual script, not some isolated and incomplete snippets,...
Dave - 3 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search