Description Usage Arguments Value Author(s) Examples
Shrinkage plot for multilevel estimates
1 | function(S, N = 15, seed = 12)
|
S |
Data frame with variables Player, Individual, Multilevel |
N |
Number of random players to graph |
seed |
Random number seed |
ggplot2 object of the shrinkage plot
Jim Albert
1 2 3 4 5 6 | ## Not run:
d <- collect_hitting_data()
fit <- fit_bb_model(list(y = d$H, n = d$AB))
S <- data.frame(Player = d$playerID,
Individual = d$H / d$AB, Multilevel = fit$d$est)
shrinkage_plot(S)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.