vs_theoretical_sideout_rates | R Documentation |
The vs_estimate_rates()
function returns a team's performance rates across a range of aspects of play, including serve ace rate, serve error rate, and so on. Using vs_theoretical_sideout_rates()
We can estimate the theoretical sideout rate that we would expect to see, given those parameters. This can be compared to the actual sideout rate achieved by the team.
vs_theoretical_sideout_rates(rates, process_model = "phase")
rates |
list: rates as returned by |
process_model |
string: currently only "phase". See |
The theoretical sideout rates of the two teams
vs_estimate_rates()
## Not run:
library(datavolley)
x <- dv_read(dv_example_file())
rates <- list(vs_estimate_rates(x, target_team = home_team(x)),
vs_estimate_rates(x, target_team = visiting_team(x)))
## the theoretical sideout rates
vs_theoretical_sideout_rates(rates)
## compare to their actual sideout rates
c(rates[[1]]$sideout, rates[[2]]$sideout)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.