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.7-any)runexp_0.2.1.zip(r-4.6-any)runexp_0.2.1.zip(r-4.5-any)
runexp_0.2.1.tgz(r-4.6-any)runexp_0.2.1.tgz(r-4.5-any)
runexp_0.2.1.tar.gz(r-4.7-any)runexp_0.2.1.tar.gz(r-4.6-any)
runexp_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
runexp/json (API)

# Install 'runexp' in R:
install.packages('runexp', repos = c('https://anniesbooth.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:
  • wku_probs - Player statistics and probabilities for WKU softball
  • wku_stats - Player statistics and probabilities for WKU softball

On CRAN:

Conda:

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

1.00 score 290 downloads 4 exports 4 dependencies

Last updated from:5720319ab7. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK98
source / vignettesOK160
linux-releaseOK96
macos-releaseOK195
macos-oldrelOK148
windows-develOK66
windows-releaseOK64
windows-oldrelOK65
wasm-releaseOK74

Exports:chainprob_calcscrapesim

Dependencies:codetoolsdoParallelforeachiterators