Calculating total item time in the Tower of London


Author
Message
Nicola
Nicola
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 11, Visits: 1

Hi Dave,


Thanks again for your help. I wasn't able to work on it for a while, but have just tried it, and I think it all works now.


I had introduced variables for the new problem score, total score, and start and solution times per item (vs. per attempt), but I don't know that I would have been able to figure out the addition of the totalchoicecount variable. So thank you very much!


Nicola


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: 108K

Look at how the variable values.t_roundstart is used throughout those trials. It is (re-)set to zero at the start of a new round


<trial newround>
/ ontrialbegin = [values.t_roundstart=0; ...]


and in case of the subject re-setting the current problem


<trial resetround>
[...]
/ ontrialbegin = [values.t_roundstart=0; ...]


The first instance of <trial choice> then stores the current time in it


<trial choice>
[...]
/ ontrialbegin = [if(values.choicecount==1)values.t_roundstart=script.elapsedtime]


To determine absolute solution for a given problem (i.e., across all attempts) you could simply introduce a variable that records the current time *only at the beginning of a new round* (i.e., it is never reset between attempts) and is only updated in the *very first 'choice' trial* (i.e., you'll want to implement something like values.totalchoicecount, which also is not reset between attempts).


The rest should follow logically from there, but let me know if not.


Nicola
Nicola
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 11, Visits: 1

Hi Dave,


Thank you very much for your reply. The thing is, I think I'm ok modifying the relevant sections of the script to calculate variables across all items and within individual attempts of the same item, however, I'm not sure how to calculate variables that sum across multiple attempts of the same item, without it continuing to sum across all items (specifically the sections of the script I mentioned in my original post). Additionally, when participants click 'reset round', no time is recorded under expressions.solutiontime, which would mean the time for that attempt wouldn't be included in the total item time. 


I hope that all made sense and thanks again for your reply!


Best, 


Nicola


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: 108K

From the comments in the script:


expressions.solutiontime:


Returns the time (in ms) elapsed between initial presentation of the target configuration and a subject's successful solution. Note: Measure is computed separately for each attempt.


values. subjectattempts:


Number of current attempts to solve the given problem.


All you need to do is sum up solutiontime across attempts and then go ahead calculating your score as desired.


Nicola
Nicola
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 11, Visits: 1

Hello,


I am trying to modify the Tower of London script so that it automatically calculates a variable similar to that of Anderson, Anderson and Lajoie (1996). Basically, the total time taken to successfully complete the item in the minimum number of moves is transformed into a score from 3-12. Then, the number of incorrect attempts is subtracted from this score to get an item score. Summing these gives the score I want.


So, what I need is a variable that specifies the total time taken for that item, over a possible maximum of three attempts. What I am having trouble with is how I should specify this variable under the <expressions> section and the trial elements section (specifically: start round, reset round, select object, feedback trial). So far, my attempts have yielded a variable identical to values.t_choiceend or a variable that resets for each attempt of the same item.


If anyone has any advice, that would be greatly appreciated! Once I have this new variable that specifies the total item time, I think I am fine with getting the syntax to compute the Anderson et al. (1996) variable I want.


Thank you!


Nicola


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search