component_predict: Computes component predictions of batting averages

Description Usage Arguments Value Author(s) Examples

Description

Computes component predictions of batting avreages

Usage

1

Arguments

d

data frame with variables playerID, AB, H, HR, SO

Value

S

data frame with variables playerID, SO, AB, SO.Rate, HR, AB.SO, HR.Rate, H.HR, AB.SO.HR, H.Rate, Comp.Est, H, AB1, Shrinkage.Est

component

data frame with values of eta and K for each component fit

shrinkage

values of eta and K for general multilevel fit

Author(s)

Jim Albert

Examples

1
2
3
 ## Not run: 
 d <- collect_hitting_data()
 S <- component_predict(d)

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