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.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')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 4 years agofrom:5720319ab7. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 02 2024 |
R-4.5-win | OK | Nov 02 2024 |
R-4.5-linux | OK | Nov 02 2024 |
R-4.4-win | OK | Nov 02 2024 |
R-4.4-mac | OK | Nov 02 2024 |
R-4.3-win | OK | Nov 02 2024 |
R-4.3-mac | OK | Nov 02 2024 |
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 |