shakeWAR: shakeWAR

Description Usage Arguments Details Value Examples

View source: R/GameDayPlays.R

Description

resample a data.frame to obtain variance estimate for WAR

Usage

1
shakeWAR(data, resample = "plays", N = 10, ...)

Arguments

data

An MLBAM data.frame

resample

An element of c('plays', 'models', 'both')

N

the number of resamples (default 5000)

Details

Resamples the rows of an MLBAM data set

Value

a data.frame with RAA values

Examples

1
2
3
ds = getData()
res = shakeWAR(ds, resample='plays', N=10)
summary(res)

frogman141/openWAR documentation built on Dec. 20, 2021, 8:52 a.m.