| game.pred | R Documentation |
Uses a fitted mvglmmRank object to print predicted scores,
win probability, and/or margin of victory for a specified matchup.
game.pred(res, home, away, neutral.site = FALSE)
res |
An object of class |
home |
Character string naming the home team. The name should match a team name in the fitted object. |
away |
Character string naming the away team. The name should match a team name in the fitted object. |
neutral.site |
Logical. If |
Neutral-site predictions require the training data supplied to
mvglmmRank to contain neutral.site = 1 games. If a
fitted score model has no neutral-site mean, neutral-site score predictions
may be unavailable.
Prints predictions and returns NULL invisibly.
Broatch, J.E. and Karl, A.T. (2018). Multivariate Generalized Linear Mixed Models for Joint Estimation of Sporting Outcomes. Italian Journal of Applied Statistics, 30(2), 189-211. Also available from https://arxiv.org/abs/1710.05284.
Karl, A.T., Yang, Y. and Lohr, S. (2014). Computation of Maximum Likelihood Estimates for Multiresponse Generalized Linear Mixed Models with Non-nested, Correlated Random Effects. Computational Statistics & Data Analysis, 73, 146-162. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.csda.2013.11.019")}.
Karl, A.T. (2012). The Sensitivity of College Football Rankings to Several Modeling Choices. Journal of Quantitative Analysis in Sports, 8(3). \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1515/1559-0410.1471")}.
mvglmmRank
data(nfl2012)
fit <- mvglmmRank(nfl2012, method = "PB0", first.order = TRUE,
max.iter.EM = 1, verbose = FALSE)
game.pred(fit, home = "Denver Broncos", away = "Green Bay Packers")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.