Last week, Ellis Hughes and I did our “Teach me something in R in 20min or less” series on predicting hall of fame MLB pitchers using logistic regression. This week, we complete the same task but instead do it using Bayesian logistic regression with {rstanarm}. We don’t get into priors or anything like that (simply use the default, weakly informative, priors that are specified in the function) since it is a 20min or less episode. However, we do cover:
- Specifying the syntax of the model
- Plotting the model results
- Making out of sample predictions
- Plotting posterior distributions for individual players
To watch the screen cast, CLICK HERE.
To access the code, CLICK HERE.