Millisecond Forums

Recording a specific variable

https://forums.millisecond.com/Topic27751.aspx

By JessicaEMFarias - 9/11/2019

Hi!

I have designed an experiment in which participants should point out in which side of a square there are more dots. There are 20 trials and they are rewarded based on the choices they make. If they choose the left side, they are rewarded nothing and if they choose the right side, they are rewarded 0.10. 

I have been able to record each of the participant`s choice in the output file, but I need to record the final balance (after the 20 trials) as well. Is that possible to do that?


By Dave - 9/11/2019

JessicaEMFarias - 9/12/2019
Hi!

I have designed an experiment in which participants should point out in which side of a square there are more dots. There are 20 trials and they are rewarded based on the choices they make. If they choose the left side, they are rewarded nothing and if they choose the right side, they are rewarded 0.10. 

I have been able to record each of the participant`s choice in the output file, but I need to record the final balance (after the 20 trials) as well. Is that possible to do that?



Log values.account_balance to the data and summary data files. You already do this with values.selecteditem, it works the same way. Just add values.account_balance to the /columns attributes in the <data> and <summarydata> elements.