Description Usage Arguments Examples
Calculate long run probabilities
1 |
... |
arguments passed to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | parity <- data.frame(
sport = "nba",
mean_theta = c(0.01, 0),
mean_alpha = c(0, 0),
alpha_sport = 0
)
long_run_prob(parity, n = 100, series_length = 99)
if (require(dplyr) && require(tidyr)) {
best16_2016 %>%
group_by(sport) %>%
do(wpct = long_run_prob(., n = 10, series_length = 7)) %>%
unnest()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.