CRAN/E | runexp

runexp

Softball Run Expectancy using Markov Chains and Simulation

Installation

About

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.

Key Metrics

Version 0.2.1
R ≥ 3.6
Published 2021-03-22 1131 days ago
Needs compilation? no
License LGPL-2
License LGPL-2.1
License LGPL-3
CRAN checks runexp results

Downloads

Yesterday 13 -24%
Last 7 days 54 +26%
Last 30 days 186 -3%
Last 90 days 530 -26%
Last 365 days 2.275 +0%

Maintainer

Maintainer

Annie Sauer

anniees@vt.edu

Authors

Annie Sauer

aut / cre

Sierra Merkes

aut

Material

README
Reference manual
Package source

In Views

SportsAnalytics

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

runexp archive

Depends

R ≥ 3.6

Imports

doParallel
foreach
parallel

Suggests

xml2
rvest