Ranking subject in z-tree

13 views
Skip to first unread message

Sabrina Gulab

unread,
Dec 23, 2022, 2:59:01 AM12/23/22
to z-Tree unleashed
Hi All,
I am coding a dynamic public good game, and need to arrange subject in groups based on their investment in risk elicitation task.
 Before grouping the subject I have to rank participants according to the AmountInvested in previous stage. Subject who invested greater amount will get highest rank.. and so on.

I have written the code below based on examples I have seen in the manual, however, this doesn't rank participants in a correct order.

Rank=count(same(Group) & AmountInvested==:AmountInvested)

Thanks,
Sabrina

Max R. P. Grossmann

unread,
Dec 23, 2022, 4:49:23 AM12/23/22
to Sabrina Gulab, z-Tree unleashed
Hi Sabrina,

Please email the official z-Tree mailing list, zt...@econ.lists.uzh.ch

Best,

Max
Reply all
Reply to author
Forward
0 new messages