prob_transitions: Probability Count Transitions

Description Usage Arguments Value Author(s)

View source: R/prob_transitions.R

Description

Constructs the probabilities of all count transition in a plate appearance

Usage

1
  prob_transitions(dt, player = "", pitcher = FALSE)

Arguments

dt

Data frame giving beginning and ending counts for each pitch

player

Retrosheet id code for player

pitcher

Indicates if the player is a pitcher or batter

Value

data frame of the samples sizes N, the counts Y, and probabilities P of all count transitions

Author(s)

Jim Albert


bayesball/PitchSequence documentation built on Jan. 19, 2021, 8:37 p.m.