We're running Monte Carlo repeated measures for several groups. The goal is to determine the number of time each group has the highest score. A toy example: [,1] [,2] [,3] 0.1 0.2 0.3 0.1 0.2 0.3 0.1 0.2 0.3 0.1 0.3 0.2 0.1 0.3 0.2 0.2 0.3 0.1 For this example: group 1 was the top 0 times, group 2 was the top 3 times., group 3 was the top 3 times I can do this with some messy & statements or loops, but am looking for an easier way. Any suggestion? -N
Comparing multiple columns in matrix
2 messages · Noah Silverman, Dennis Murphy
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100531/23c0f4d9/attachment.pl>