Would be good to use subzones or coordinates - something more precise than zones - when calculating player responsibility (for passing, in particular). I played with a couple of ideas but could not come up with anything for coordinates or subzones that was both efficient and also able to handle small sample sizes (e.g. early in a match when not many passes have been made).
In the meantime, there is also an issue with the current code in that
sort(passing_responsibility_posterior, decreasing = TRUE)
will always retain the existing ordering of passing_responsibility_posterior for tied elements. And because passing_responsibility_posterior is ordered by player 1 to 6 then libero, the libero is always last when there are ties, and so never gets selected when there are ties.
Would be good to use subzones or coordinates - something more precise than zones - when calculating player responsibility (for passing, in particular). I played with a couple of ideas but could not come up with anything for coordinates or subzones that was both efficient and also able to handle small sample sizes (e.g. early in a match when not many passes have been made). In the meantime, there is also an issue with the current code in that
sort(passing_responsibility_posterior, decreasing = TRUE)
will always retain the existing ordering ofpassing_responsibility_posterior
for tied elements. And becausepassing_responsibility_posterior
is ordered by player 1 to 6 then libero, the libero is always last when there are ties, and so never gets selected when there are ties.