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:
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')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:5720319ab7. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 98 | ||
| source / vignettes | OK | 160 | ||
| linux-release | OK | 96 | ||
| macos-release | OK | 195 | ||
| macos-oldrel | OK | 148 | ||
| windows-devel | OK | 66 | ||
| windows-release | OK | 64 | ||
| windows-oldrel | OK | 65 | ||
| wasm-release | OK | 74 |
Exports:chainprob_calcscrapesim
Dependencies:codetoolsdoParallelforeachiterators
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Package runexp | runexp-package |
| Softball run expectancy using discrete Markov chains | chain |
| Plots an object of S3 class "'chain'" | plot.chain |
| Calculates player probabilities given players' game statistics. | prob_calc |
| Softball Webscraper | scrape |
| Softball run expectancy using multinomial random trial simulation | sim |
| Player statistics and probabilities for WKU softball | wku_probs wku_stats |