Description Usage Arguments Value Author(s) Examples
Simulates predictive distribution of season home runs using a beta-binomial model
1 | predict_hr(d, lastname, ITER=10000)
|
d |
data frame with variables AB and HR |
lastname |
last name of player of interest |
current_HR |
number of current home runs |
current_AB |
number of current at-bats |
future_G |
number of games in remainder of season |
future_AB |
estimated number of at-bats in remainder of season |
future_HR |
vector of simulated values of future home run counts from predictive distribution |
Jim Albert
1 2 3 | ## Not run:
d <- collect_hitting_data()
S <- predict_hr(d, "Trout", 90)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.