Adding trial numbers as shown to participants to raw data file


Author
Message
inquisituser22
inquisituser22
Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)
Group: Forum Members
Posts: 96, Visits: 339
Hello,
I would like to add the number of each trial to our raw data file, reflecting the order which was shown to participants. In my paste below from our raw data file, please find the "trialnum" column. You'll see that these are practice trials for the Approach/Avoidance script, and they certainly are not trial numbers 9, 12, 96, etc. as they were presented as the first 30 trials. We only have 30 practice trials, so I am not sure how to interpret "trialnum" when it ranges to 96. Additionally, I am hoping to have a column that just shows the numbers "1, 2, 3, etc." sequentially to show how participants viewed them for data analysis. 

Thank you!

  blockcode       blocknum      trialcode                trialnum
practice_AAT     1              InterTrialInterval              9
practice_AAT     1              InterTrialInterval              12
practice_AAT     1              InterTrialInterval              15
practice_AAT     1              InterTrialInterval              18
practice_AAT     1              InterTrialInterval              21
practice_AAT     1              InterTrialInterval              24
practice_AAT     1              InterTrialInterval              27
practice_AAT     1              InterTrialInterval              30
practice_AAT     1              InterTrialInterval              33
practice_AAT     1              InterTrialInterval              36
practice_AAT     1              InterTrialInterval              39
practice_AAT     1              InterTrialInterval              42
practice_AAT     1              InterTrialInterval              45
practice_AAT     1              InterTrialInterval              48
practice_AAT     1              InterTrialInterval              51
practice_AAT     1              InterTrialInterval              54
practice_AAT     1              InterTrialInterval              57
practice_AAT     1              InterTrialInterval              60
practice_AAT     1              InterTrialInterval              63
practice_AAT     1              InterTrialInterval              66
practice_AAT     1              InterTrialInterval              69
practice_AAT     1              InterTrialInterval              72
practice_AAT     1              InterTrialInterval              75
practice_AAT     1              InterTrialInterval              78
practice_AAT     1              InterTrialInterval              81
practice_AAT     1              InterTrialInterval              84
practice_AAT     1              InterTrialInterval              87
practice_AAT     1              InterTrialInterval              90
practice_AAT     1              InterTrialInterval              93
practice_AAT     1              InterTrialInterval              96


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
inquisituser22 - 9/11/2019
Hello,
I would like to add the number of each trial to our raw data file, reflecting the order which was shown to participants. In my paste below from our raw data file, please find the "trialnum" column. You'll see that these are practice trials for the Approach/Avoidance script, and they certainly are not trial numbers 9, 12, 96, etc. as they were presented as the first 30 trials. We only have 30 practice trials, so I am not sure how to interpret "trialnum" when it ranges to 96. Additionally, I am hoping to have a column that just shows the numbers "1, 2, 3, etc." sequentially to show how participants viewed them for data analysis. 

Thank you!

  blockcode       blocknum      trialcode                trialnum
practice_AAT     1              InterTrialInterval              9
practice_AAT     1              InterTrialInterval              12
practice_AAT     1              InterTrialInterval              15
practice_AAT     1              InterTrialInterval              18
practice_AAT     1              InterTrialInterval              21
practice_AAT     1              InterTrialInterval              24
practice_AAT     1              InterTrialInterval              27
practice_AAT     1              InterTrialInterval              30
practice_AAT     1              InterTrialInterval              33
practice_AAT     1              InterTrialInterval              36
practice_AAT     1              InterTrialInterval              39
practice_AAT     1              InterTrialInterval              42
practice_AAT     1              InterTrialInterval              45
practice_AAT     1              InterTrialInterval              48
practice_AAT     1              InterTrialInterval              51
practice_AAT     1              InterTrialInterval              54
practice_AAT     1              InterTrialInterval              57
practice_AAT     1              InterTrialInterval              60
practice_AAT     1              InterTrialInterval              63
practice_AAT     1              InterTrialInterval              66
practice_AAT     1              InterTrialInterval              69
practice_AAT     1              InterTrialInterval              72
practice_AAT     1              InterTrialInterval              75
practice_AAT     1              InterTrialInterval              78
practice_AAT     1              InterTrialInterval              81
practice_AAT     1              InterTrialInterval              84
practice_AAT     1              InterTrialInterval              87
practice_AAT     1              InterTrialInterval              90
practice_AAT     1              InterTrialInterval              93
practice_AAT     1              InterTrialInterval              96


They are trial numbers. The AAT script runs a lot of trials which are not logged, i.e. all the various instances of increase and decrease trials during which the participant moves the joystic around. Even when they're not logged, the still will (and should) affect the trialnum count.

You are, of course, free to make use of values to implement your own, separate trial count which ignores the trials that aren't logged.

inquisituser22
inquisituser22
Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)
Group: Forum Members
Posts: 96, Visits: 339
Dave - 9/11/2019
inquisituser22 - 9/11/2019
Hello,
I would like to add the number of each trial to our raw data file, reflecting the order which was shown to participants. In my paste below from our raw data file, please find the "trialnum" column. You'll see that these are practice trials for the Approach/Avoidance script, and they certainly are not trial numbers 9, 12, 96, etc. as they were presented as the first 30 trials. We only have 30 practice trials, so I am not sure how to interpret "trialnum" when it ranges to 96. Additionally, I am hoping to have a column that just shows the numbers "1, 2, 3, etc." sequentially to show how participants viewed them for data analysis. 

Thank you!

  blockcode       blocknum      trialcode                trialnum
practice_AAT     1              InterTrialInterval              9
practice_AAT     1              InterTrialInterval              12
practice_AAT     1              InterTrialInterval              15
practice_AAT     1              InterTrialInterval              18
practice_AAT     1              InterTrialInterval              21
practice_AAT     1              InterTrialInterval              24
practice_AAT     1              InterTrialInterval              27
practice_AAT     1              InterTrialInterval              30
practice_AAT     1              InterTrialInterval              33
practice_AAT     1              InterTrialInterval              36
practice_AAT     1              InterTrialInterval              39
practice_AAT     1              InterTrialInterval              42
practice_AAT     1              InterTrialInterval              45
practice_AAT     1              InterTrialInterval              48
practice_AAT     1              InterTrialInterval              51
practice_AAT     1              InterTrialInterval              54
practice_AAT     1              InterTrialInterval              57
practice_AAT     1              InterTrialInterval              60
practice_AAT     1              InterTrialInterval              63
practice_AAT     1              InterTrialInterval              66
practice_AAT     1              InterTrialInterval              69
practice_AAT     1              InterTrialInterval              72
practice_AAT     1              InterTrialInterval              75
practice_AAT     1              InterTrialInterval              78
practice_AAT     1              InterTrialInterval              81
practice_AAT     1              InterTrialInterval              84
practice_AAT     1              InterTrialInterval              87
practice_AAT     1              InterTrialInterval              90
practice_AAT     1              InterTrialInterval              93
practice_AAT     1              InterTrialInterval              96


They are trial numbers. The AAT script runs a lot of trials which are not logged, i.e. all the various instances of increase and decrease trials during which the participant moves the joystic around. Even when they're not logged, the still will (and should) affect the trialnum count.

You are, of course, free to make use of values to implement your own, separate trial count which ignores the trials that aren't logged.

Ok, thank you for clarifying about the non-logged trials, I didn't realize! I'm a bit stuck on how to use the values feature to implement my own separate trial count. I tried "values.sequence" but it seems that is in scripts where they use the sequence generator for the AAT, which I am not. As of now here is what I have. Could you please let me know how I can use the values item to reflect the shown trial count? Thank you!

<data>
/ separatefiles = true
/ columns = (build, computer.platform, date, time, subject, group, stimulusitem, stimulusnumber
values.expcondition,
script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime,
blockcode, blocknum, trialcode, trialnum, values.trialcode,
values.stimulus, values.targetcategory,values.targetformat,
values.initialresponse, values.correct, values.finalresponse, values.changedirection,
values.RT, values.completeRT values.completed, values.expcondition,
expressions.propcorrect_overall, expressions.meanRT_overall, expressions.SD_RT, expressions.medianRT_overall, expressions.aat_diffscore_cat1, expressions.aat_diffscore_cat2)
</data>

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
inquisituser22 - 9/11/2019
Dave - 9/11/2019
inquisituser22 - 9/11/2019
Hello,
I would like to add the number of each trial to our raw data file, reflecting the order which was shown to participants. In my paste below from our raw data file, please find the "trialnum" column. You'll see that these are practice trials for the Approach/Avoidance script, and they certainly are not trial numbers 9, 12, 96, etc. as they were presented as the first 30 trials. We only have 30 practice trials, so I am not sure how to interpret "trialnum" when it ranges to 96. Additionally, I am hoping to have a column that just shows the numbers "1, 2, 3, etc." sequentially to show how participants viewed them for data analysis. 

Thank you!

  blockcode       blocknum      trialcode                trialnum
practice_AAT     1              InterTrialInterval              9
practice_AAT     1              InterTrialInterval              12
practice_AAT     1              InterTrialInterval              15
practice_AAT     1              InterTrialInterval              18
practice_AAT     1              InterTrialInterval              21
practice_AAT     1              InterTrialInterval              24
practice_AAT     1              InterTrialInterval              27
practice_AAT     1              InterTrialInterval              30
practice_AAT     1              InterTrialInterval              33
practice_AAT     1              InterTrialInterval              36
practice_AAT     1              InterTrialInterval              39
practice_AAT     1              InterTrialInterval              42
practice_AAT     1              InterTrialInterval              45
practice_AAT     1              InterTrialInterval              48
practice_AAT     1              InterTrialInterval              51
practice_AAT     1              InterTrialInterval              54
practice_AAT     1              InterTrialInterval              57
practice_AAT     1              InterTrialInterval              60
practice_AAT     1              InterTrialInterval              63
practice_AAT     1              InterTrialInterval              66
practice_AAT     1              InterTrialInterval              69
practice_AAT     1              InterTrialInterval              72
practice_AAT     1              InterTrialInterval              75
practice_AAT     1              InterTrialInterval              78
practice_AAT     1              InterTrialInterval              81
practice_AAT     1              InterTrialInterval              84
practice_AAT     1              InterTrialInterval              87
practice_AAT     1              InterTrialInterval              90
practice_AAT     1              InterTrialInterval              93
practice_AAT     1              InterTrialInterval              96


They are trial numbers. The AAT script runs a lot of trials which are not logged, i.e. all the various instances of increase and decrease trials during which the participant moves the joystic around. Even when they're not logged, the still will (and should) affect the trialnum count.

You are, of course, free to make use of values to implement your own, separate trial count which ignores the trials that aren't logged.

Ok, thank you for clarifying about the non-logged trials, I didn't realize! I'm a bit stuck on how to use the values feature to implement my own separate trial count. I tried "values.sequence" but it seems that is in scripts where they use the sequence generator for the AAT, which I am not. As of now here is what I have. Could you please let me know how I can use the values item to reflect the shown trial count? Thank you!

<data>
/ separatefiles = true
/ columns = (build, computer.platform, date, time, subject, group, stimulusitem, stimulusnumber
values.expcondition,
script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime,
blockcode, blocknum, trialcode, trialnum, values.trialcode,
values.stimulus, values.targetcategory,values.targetformat,
values.initialresponse, values.correct, values.finalresponse, values.changedirection,
values.RT, values.completeRT values.completed, values.expcondition,
expressions.propcorrect_overall, expressions.meanRT_overall, expressions.SD_RT, expressions.medianRT_overall, expressions.aat_diffscore_cat1, expressions.aat_diffscore_cat2)
</data>

You need to create a new variable, that is add a new entry to the existing <values> element.

<values>
...
/ mytrialcount = 0
</values>

Then you need to increment that value in each trial and log values.mytrialcount to the data file.

inquisituser22
inquisituser22
Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)
Group: Forum Members
Posts: 96, Visits: 339
Dave - 9/11/2019
inquisituser22 - 9/11/2019
Dave - 9/11/2019
inquisituser22 - 9/11/2019
Hello,
I would like to add the number of each trial to our raw data file, reflecting the order which was shown to participants. In my paste below from our raw data file, please find the "trialnum" column. You'll see that these are practice trials for the Approach/Avoidance script, and they certainly are not trial numbers 9, 12, 96, etc. as they were presented as the first 30 trials. We only have 30 practice trials, so I am not sure how to interpret "trialnum" when it ranges to 96. Additionally, I am hoping to have a column that just shows the numbers "1, 2, 3, etc." sequentially to show how participants viewed them for data analysis. 

Thank you!

  blockcode       blocknum      trialcode                trialnum
practice_AAT     1              InterTrialInterval              9
practice_AAT     1              InterTrialInterval              12
practice_AAT     1              InterTrialInterval              15
practice_AAT     1              InterTrialInterval              18
practice_AAT     1              InterTrialInterval              21
practice_AAT     1              InterTrialInterval              24
practice_AAT     1              InterTrialInterval              27
practice_AAT     1              InterTrialInterval              30
practice_AAT     1              InterTrialInterval              33
practice_AAT     1              InterTrialInterval              36
practice_AAT     1              InterTrialInterval              39
practice_AAT     1              InterTrialInterval              42
practice_AAT     1              InterTrialInterval              45
practice_AAT     1              InterTrialInterval              48
practice_AAT     1              InterTrialInterval              51
practice_AAT     1              InterTrialInterval              54
practice_AAT     1              InterTrialInterval              57
practice_AAT     1              InterTrialInterval              60
practice_AAT     1              InterTrialInterval              63
practice_AAT     1              InterTrialInterval              66
practice_AAT     1              InterTrialInterval              69
practice_AAT     1              InterTrialInterval              72
practice_AAT     1              InterTrialInterval              75
practice_AAT     1              InterTrialInterval              78
practice_AAT     1              InterTrialInterval              81
practice_AAT     1              InterTrialInterval              84
practice_AAT     1              InterTrialInterval              87
practice_AAT     1              InterTrialInterval              90
practice_AAT     1              InterTrialInterval              93
practice_AAT     1              InterTrialInterval              96


They are trial numbers. The AAT script runs a lot of trials which are not logged, i.e. all the various instances of increase and decrease trials during which the participant moves the joystic around. Even when they're not logged, the still will (and should) affect the trialnum count.

You are, of course, free to make use of values to implement your own, separate trial count which ignores the trials that aren't logged.

Ok, thank you for clarifying about the non-logged trials, I didn't realize! I'm a bit stuck on how to use the values feature to implement my own separate trial count. I tried "values.sequence" but it seems that is in scripts where they use the sequence generator for the AAT, which I am not. As of now here is what I have. Could you please let me know how I can use the values item to reflect the shown trial count? Thank you!

<data>
/ separatefiles = true
/ columns = (build, computer.platform, date, time, subject, group, stimulusitem, stimulusnumber
values.expcondition,
script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime,
blockcode, blocknum, trialcode, trialnum, values.trialcode,
values.stimulus, values.targetcategory,values.targetformat,
values.initialresponse, values.correct, values.finalresponse, values.changedirection,
values.RT, values.completeRT values.completed, values.expcondition,
expressions.propcorrect_overall, expressions.meanRT_overall, expressions.SD_RT, expressions.medianRT_overall, expressions.aat_diffscore_cat1, expressions.aat_diffscore_cat2)
</data>

You need to create a new variable, that is add a new entry to the existing <values> element.

<values>
...
/ mytrialcount = 0
</values>

Then you need to increment that value in each trial and log values.mytrialcount to the data file.

Thank you for the assistance with this. Could you please let me know how I would increment the value in each trial? I imagine it is something like this below in bold, but I am not sure what to write to have it increase for each trial (there are 240 trials, with 3 instructions pages so 243). Thank you again

/ ontrialbegin = [
values.selectstimulus = list.category4.nextvalue;
values.targetcategory = 2;
values.targetformat = "p";
picture.targetstimulus.height = values.startheight_B;
values.starttime = script.elapsedtime;
values.endtime = 0;
values.completeRT = 0;
values.changedirection = 0;
values.finalresponse="";
mytrialcount=
]

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
inquisituser22 - 9/12/2019
Dave - 9/11/2019
inquisituser22 - 9/11/2019
Dave - 9/11/2019
inquisituser22 - 9/11/2019
Hello,
I would like to add the number of each trial to our raw data file, reflecting the order which was shown to participants. In my paste below from our raw data file, please find the "trialnum" column. You'll see that these are practice trials for the Approach/Avoidance script, and they certainly are not trial numbers 9, 12, 96, etc. as they were presented as the first 30 trials. We only have 30 practice trials, so I am not sure how to interpret "trialnum" when it ranges to 96. Additionally, I am hoping to have a column that just shows the numbers "1, 2, 3, etc." sequentially to show how participants viewed them for data analysis. 

Thank you!

  blockcode       blocknum      trialcode                trialnum
practice_AAT     1              InterTrialInterval              9
practice_AAT     1              InterTrialInterval              12
practice_AAT     1              InterTrialInterval              15
practice_AAT     1              InterTrialInterval              18
practice_AAT     1              InterTrialInterval              21
practice_AAT     1              InterTrialInterval              24
practice_AAT     1              InterTrialInterval              27
practice_AAT     1              InterTrialInterval              30
practice_AAT     1              InterTrialInterval              33
practice_AAT     1              InterTrialInterval              36
practice_AAT     1              InterTrialInterval              39
practice_AAT     1              InterTrialInterval              42
practice_AAT     1              InterTrialInterval              45
practice_AAT     1              InterTrialInterval              48
practice_AAT     1              InterTrialInterval              51
practice_AAT     1              InterTrialInterval              54
practice_AAT     1              InterTrialInterval              57
practice_AAT     1              InterTrialInterval              60
practice_AAT     1              InterTrialInterval              63
practice_AAT     1              InterTrialInterval              66
practice_AAT     1              InterTrialInterval              69
practice_AAT     1              InterTrialInterval              72
practice_AAT     1              InterTrialInterval              75
practice_AAT     1              InterTrialInterval              78
practice_AAT     1              InterTrialInterval              81
practice_AAT     1              InterTrialInterval              84
practice_AAT     1              InterTrialInterval              87
practice_AAT     1              InterTrialInterval              90
practice_AAT     1              InterTrialInterval              93
practice_AAT     1              InterTrialInterval              96


They are trial numbers. The AAT script runs a lot of trials which are not logged, i.e. all the various instances of increase and decrease trials during which the participant moves the joystic around. Even when they're not logged, the still will (and should) affect the trialnum count.

You are, of course, free to make use of values to implement your own, separate trial count which ignores the trials that aren't logged.

Ok, thank you for clarifying about the non-logged trials, I didn't realize! I'm a bit stuck on how to use the values feature to implement my own separate trial count. I tried "values.sequence" but it seems that is in scripts where they use the sequence generator for the AAT, which I am not. As of now here is what I have. Could you please let me know how I can use the values item to reflect the shown trial count? Thank you!

<data>
/ separatefiles = true
/ columns = (build, computer.platform, date, time, subject, group, stimulusitem, stimulusnumber
values.expcondition,
script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime,
blockcode, blocknum, trialcode, trialnum, values.trialcode,
values.stimulus, values.targetcategory,values.targetformat,
values.initialresponse, values.correct, values.finalresponse, values.changedirection,
values.RT, values.completeRT values.completed, values.expcondition,
expressions.propcorrect_overall, expressions.meanRT_overall, expressions.SD_RT, expressions.medianRT_overall, expressions.aat_diffscore_cat1, expressions.aat_diffscore_cat2)
</data>

You need to create a new variable, that is add a new entry to the existing <values> element.

<values>
...
/ mytrialcount = 0
</values>

Then you need to increment that value in each trial and log values.mytrialcount to the data file.

Thank you for the assistance with this. Could you please let me know how I would increment the value in each trial? I imagine it is something like this below in bold, but I am not sure what to write to have it increase for each trial (there are 240 trials, with 3 instructions pages so 243). Thank you again

/ ontrialbegin = [
values.selectstimulus = list.category4.nextvalue;
values.targetcategory = 2;
values.targetformat = "p";
picture.targetstimulus.height = values.startheight_B;
values.starttime = script.elapsedtime;
values.endtime = 0;
values.completeRT = 0;
values.changedirection = 0;
values.finalresponse="";
mytrialcount=
]

The syntax is

mytrialcount += 1;

inquisituser22
inquisituser22
Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)
Group: Forum Members
Posts: 96, Visits: 339
Dave - 9/12/2019
inquisituser22 - 9/12/2019
Dave - 9/11/2019
inquisituser22 - 9/11/2019
Dave - 9/11/2019
inquisituser22 - 9/11/2019
Hello,
I would like to add the number of each trial to our raw data file, reflecting the order which was shown to participants. In my paste below from our raw data file, please find the "trialnum" column. You'll see that these are practice trials for the Approach/Avoidance script, and they certainly are not trial numbers 9, 12, 96, etc. as they were presented as the first 30 trials. We only have 30 practice trials, so I am not sure how to interpret "trialnum" when it ranges to 96. Additionally, I am hoping to have a column that just shows the numbers "1, 2, 3, etc." sequentially to show how participants viewed them for data analysis. 

Thank you!

  blockcode       blocknum      trialcode                trialnum
practice_AAT     1              InterTrialInterval              9
practice_AAT     1              InterTrialInterval              12
practice_AAT     1              InterTrialInterval              15
practice_AAT     1              InterTrialInterval              18
practice_AAT     1              InterTrialInterval              21
practice_AAT     1              InterTrialInterval              24
practice_AAT     1              InterTrialInterval              27
practice_AAT     1              InterTrialInterval              30
practice_AAT     1              InterTrialInterval              33
practice_AAT     1              InterTrialInterval              36
practice_AAT     1              InterTrialInterval              39
practice_AAT     1              InterTrialInterval              42
practice_AAT     1              InterTrialInterval              45
practice_AAT     1              InterTrialInterval              48
practice_AAT     1              InterTrialInterval              51
practice_AAT     1              InterTrialInterval              54
practice_AAT     1              InterTrialInterval              57
practice_AAT     1              InterTrialInterval              60
practice_AAT     1              InterTrialInterval              63
practice_AAT     1              InterTrialInterval              66
practice_AAT     1              InterTrialInterval              69
practice_AAT     1              InterTrialInterval              72
practice_AAT     1              InterTrialInterval              75
practice_AAT     1              InterTrialInterval              78
practice_AAT     1              InterTrialInterval              81
practice_AAT     1              InterTrialInterval              84
practice_AAT     1              InterTrialInterval              87
practice_AAT     1              InterTrialInterval              90
practice_AAT     1              InterTrialInterval              93
practice_AAT     1              InterTrialInterval              96


They are trial numbers. The AAT script runs a lot of trials which are not logged, i.e. all the various instances of increase and decrease trials during which the participant moves the joystic around. Even when they're not logged, the still will (and should) affect the trialnum count.

You are, of course, free to make use of values to implement your own, separate trial count which ignores the trials that aren't logged.

Ok, thank you for clarifying about the non-logged trials, I didn't realize! I'm a bit stuck on how to use the values feature to implement my own separate trial count. I tried "values.sequence" but it seems that is in scripts where they use the sequence generator for the AAT, which I am not. As of now here is what I have. Could you please let me know how I can use the values item to reflect the shown trial count? Thank you!

<data>
/ separatefiles = true
/ columns = (build, computer.platform, date, time, subject, group, stimulusitem, stimulusnumber
values.expcondition,
script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime,
blockcode, blocknum, trialcode, trialnum, values.trialcode,
values.stimulus, values.targetcategory,values.targetformat,
values.initialresponse, values.correct, values.finalresponse, values.changedirection,
values.RT, values.completeRT values.completed, values.expcondition,
expressions.propcorrect_overall, expressions.meanRT_overall, expressions.SD_RT, expressions.medianRT_overall, expressions.aat_diffscore_cat1, expressions.aat_diffscore_cat2)
</data>

You need to create a new variable, that is add a new entry to the existing <values> element.

<values>
...
/ mytrialcount = 0
</values>

Then you need to increment that value in each trial and log values.mytrialcount to the data file.

Thank you for the assistance with this. Could you please let me know how I would increment the value in each trial? I imagine it is something like this below in bold, but I am not sure what to write to have it increase for each trial (there are 240 trials, with 3 instructions pages so 243). Thank you again

/ ontrialbegin = [
values.selectstimulus = list.category4.nextvalue;
values.targetcategory = 2;
values.targetformat = "p";
picture.targetstimulus.height = values.startheight_B;
values.starttime = script.elapsedtime;
values.endtime = 0;
values.completeRT = 0;
values.changedirection = 0;
values.finalresponse="";
mytrialcount=
]

The syntax is

mytrialcount += 1;

Thank you! I've added mytrialcount and it looks like I need to be more specific in the script somehow. I've attached the output - please see that 'mytrialcount' is counting many trials as the same trial. Could you please let me know how I can adjust the program to reflect that each image shown is a different trial number?

Thank you very much


Attachments
AAT output 9-16-2019.iqdat (273 views, 8.00 KB)
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
inquisituser22 - 9/16/2019
Dave - 9/12/2019

The syntax is

mytrialcount += 1;

Thank you! I've added mytrialcount and it looks like I need to be more specific in the script somehow. I've attached the output - please see that 'mytrialcount' is counting many trials as the same trial. Could you please let me know how I can adjust the program to reflect that each image shown is a different trial number?

Thank you very much


Judging from that output, you're only incrementing values.mytrialcount in one of your practice <trial> elements, namely practicetrial_A. You're doing nothing with it in the other practice <trial> elements -- practicetrial_B, practicetrial_C, practicetrial_D -- or your test <trial> elements -- AAT_1, AAT_2, AAT_3, and  AAT_4. You should obviously fix that.

Edited 5 Years Ago by Dave
inquisituser22
inquisituser22
Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)
Group: Forum Members
Posts: 96, Visits: 339
Dave - 9/16/2019
inquisituser22 - 9/16/2019
Dave - 9/12/2019

The syntax is

mytrialcount += 1;

Thank you! I've added mytrialcount and it looks like I need to be more specific in the script somehow. I've attached the output - please see that 'mytrialcount' is counting many trials as the same trial. Could you please let me know how I can adjust the program to reflect that each image shown is a different trial number?

Thank you very much


Judging from that output, you're only incrementing values.mytrialcount in one of your practice <trial> elements, namely practicetrial_A. You're doing nothing with it in the other practice <trial> elements -- practicetrial_B, practicetrial_C, practicetrial_D -- or your test <trial> elements -- AAT_1, AAT_2, AAT_3, and  AAT_4. You should obviously fix that.

Thank you for catching this!!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search