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!
|