Hi,

I have an experiment where Ps will make ratings in several different loops. What I’m trying to do is calculate the response time mean and sd from the trials in the first loop (i.e. summary mean and sd, like the average response time across all trials from that loop). Then, a later loop will call that mean and sd, subtract 1 sd from that mean, and present a countdown clock set to whatever amount of seconds that turned out to be.

So a P will complete several trials in the FCpract routine, and the P-specific mean and sd response time for that set of trials will be calculated at the end of that routine. Then, when the P gets to the FCcontrol routine, they will respond under time pressure with a countdown time set to end at whatever amount of second the mean - 1sd is.

I’ve tried to figure this out, and came across this:

and this:

which got my understanding conceptually what needs to happen. But I’ve hit a roadblock for some reason and can’t seem to integrate those solutions (i.e. code) into my study successfully.

Speaking conceptually, I suspect I will have to:

A) in Begin Routine, create an object that records and holds a list of the response times from the trials in FCpract routine,

B) then in End Routine, have two objects (meanRT and sdRT)ready to do the computation at the end of the routine and store the resulting values.

C) In the later routine, the countdown clock can just be set to ‘meanRT - sdRT’, which will produce the time pressure constraint I’m after.

**So my question is: how do I do these steps?** I realize there’s a lot in there, so I’ll suffice for just steps A and B if need be, and will figure out the countdown clock on my own (though would definitely appreciate insight on that as well).

I feel very close but can’t seem to identify the specific coding necessary to make this happen.

Thanks for your time.