Other packages > Find by keyword >

runexp  

Softball Run Expectancy using Markov Chains and Simulation
View on CRAN: Click here


Download and install runexp package within the R console
Install from CRAN:
install.packages("runexp")

Install from Github:
library("remotes")
install_github("cran/runexp")

Install by package version:
library("remotes")
install_version("runexp", "0.2.1")



Attach the package and use:
library("runexp")
Maintained by
Annie Sauer
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2021-02-15
Latest Update: 2021-03-22
Description:
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) for implementation of discrete Markov chains.
How to cite:
Annie Sauer (2021). runexp: Softball Run Expectancy using Markov Chains and Simulation. R package version 0.2.1, https://cran.r-project.org/web/packages/runexp. Accessed 05 Jun. 2026.
Previous versions and publish date:
0.1.0 (2021-02-15 11:40), 0.2.0 (2021-03-01 18:30)
Other packages that cited runexp R package
View runexp citation profile
Other R packages that runexp depends, imports, suggests or enhances
Complete documentation for runexp
Functions, R codes and Examples using the runexp R package
Some associated functions: chain . plot.chain . prob_calc . runexp-package . scrape . sim . wku . 
Some associated R codes: data.R . markov.R . prob_calc.R . runexp-package.R . scrape.R . setup.R . sim.R . sim_plot_funcs.R . sim_resultMovement_func.R .  Full runexp package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

crossurr  
Cross-Fitting for Doubly Robust Evaluation of High-Dimensional Surrogate Markers
Doubly robust methods for evaluating surrogate markers as outlined in: Agniel D, Hejblum BP, Thiebau ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
envirem  
Generation of ENVIREM Variables
Generation of bioclimatic rasters that are complementary to the typical 19 bioclim variables. ...
Download / Learn more Package Citations See dependency  
msm  
Multi-State Markov and Hidden Markov Models in Continuous Time
Functions for fitting continuous-time Markov and hidden Markov multi-state models to longitudinal d ...
Download / Learn more Package Citations See dependency  
ibb  
R Wrapper for Istanbul Municipality Open Data Portal
Call wrappers for Istanbul Metropolitan Municipality's Open Data Portal (Turkish: Istanbul B ...
Download / Learn more Package Citations See dependency  

27,268

R Packages

233,548

Dependencies

72,590

Author Associations

27,205

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA