predict_hr: Simulates predictive distribution of season home runs

Description Usage Arguments Value Author(s) Examples

Description

Simulates predictive distribution of season home runs using a beta-binomial model

Usage

1
  predict_hr(d, lastname, ITER=10000)

Arguments

d

data frame with variables AB and HR

lastname

last name of player of interest

Value

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

Author(s)

Jim Albert

Examples

1
2
3
 ## Not run: 
 d <- collect_hitting_data()
 S <- predict_hr(d, "Trout", 90)

bayesball/BApredict documentation built on May 29, 2019, 4:50 p.m.