Package: runexp 0.2.1

runexp: Softball Run Expectancy using Markov Chains and Simulation

Implements two methods of estimating runs scored in a softball scenario: (1) theoretical expectation using discrete Markov chains and (2) empirical distribution using multinomial random simulation. Scores are based on player-specific input probabilities (out, single, double, triple, walk, and homerun). Optional inputs include probability of attempting a steal, probability of succeeding in an attempted steal, and an indicator of whether a player is "fast" (e.g. the player could stretch home). These probabilities may be calculated from common player statistics that are publicly available on team's webpages. Scores are evaluated based on a nine-player lineup and may be used to compare lineups, evaluate base scenarios, and compare the offensive potential of individual players. Manuscript forthcoming. See Bukiet & Harold (1997) <doi:10.1287/opre.45.1.14> for implementation of discrete Markov chains.

Authors:Annie Sauer [aut, cre], Sierra Merkes [aut]

runexp_0.2.1.tar.gz
runexp_0.2.1.zip(r-4.5)runexp_0.2.1.zip(r-4.4)runexp_0.2.1.zip(r-4.3)
runexp_0.2.1.tgz(r-4.4-any)runexp_0.2.1.tgz(r-4.3-any)
runexp_0.2.1.tar.gz(r-4.5-noble)runexp_0.2.1.tar.gz(r-4.4-noble)
runexp_0.2.1.tgz(r-4.4-emscripten)runexp_0.2.1.tgz(r-4.3-emscripten)
runexp.pdf |runexp.html
runexp/json (API)

# Install 'runexp' in R:
install.packages('runexp', repos = c('https://anniesbooth.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • wku_probs - Player statistics and probabilities for WKU softball
  • wku_stats - Player statistics and probabilities for WKU softball

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

4 exports 0.00 score 4 dependencies 1 scripts 200 downloads

Last updated 3 years agofrom:5720319ab7. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 03 2024
R-4.5-winOKSep 03 2024
R-4.5-linuxOKSep 03 2024
R-4.4-winOKSep 03 2024
R-4.4-macOKSep 03 2024
R-4.3-winOKSep 03 2024
R-4.3-macOKSep 03 2024

Exports:chainprob_calcscrapesim

Dependencies:codetoolsdoParallelforeachiterators