retrieving payoff variable from subject's side

13 views
Skip to first unread message

Minxi Lin

unread,
Mar 30, 2025, 5:53:55 PM3/30/25
to classEx - Help and Discussion Forum
Dear Community,

In the subject side of my experiment, I created a payoff matrix game. I would like to retrieve the students’ choice proportions on the global side in order to calculate the expected payoff.

I saved the payoff matrix on the subject side using $save('payoff1', $payoff); and attempted to retrieve it on the global side with $payoff1 = ($getValues("payoff1")); However, $payoff1 appears to be an empty array.

Is there a recommended way or function to correctly retrieve this variable from the global side?

I am new to ClassEx and I’d greatly appreciate any guidance you could provide.

Sincerely,
Minxi

Marcus Giamattei (classEx Team)

unread,
Mar 31, 2025, 4:34:42 AM3/31/25
to classEx - Help and Discussion Forum
Hej Minxi,

I guess the problem is with the synchronization of stages. The global program is executed before the subjects program in any stage. So you would need to add a separate stage and then only retrieve the payoff one stage later. Or you retrieve the strategies (which have been already written in the first stage) instead of payoffs.

Best, Marcus
Reply all
Reply to author
Forward
0 new messages