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.

1.00 score 1 scripts 183 downloads 4 exports 4 dependencies

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

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-winOKNov 02 2024
R-4.5-linuxOKNov 02 2024
R-4.4-winOKNov 02 2024
R-4.4-macOKNov 02 2024
R-4.3-winOKNov 02 2024
R-4.3-macOKNov 02 2024

Exports:chainprob_calcscrapesim

Dependencies:codetoolsdoParallelforeachiterators