create_wpa_naive: Add Win Probability Added (WPA) calculations to Play-by-Play...

Description Usage Arguments Details Value

View source: R/create_wpa_naive.R

Description

Extracts raw game by game data.

Usage

1
create_wpa_naive(df, wp_model = cfbscrapR:::wp_model)

Arguments

df

(data.frame required): Clean Play-by-Play data.frame with Expected Points Added (EPA) calculations

wp_model

(model default cfbscrapR:wp_model): Win Probability (WP) Model

Details

Requires the following columns to be present in the input data frame.

Value

The original 'df' with the following columns appended to it:

wp_before
def_wp_before
home_wp_before
away_wp_before
lead_wp_before
lead_wp_before2
wpa_base
wpa_base_nxt
wpa_base_ind
wpa_base_nxt_ind
wpa_change
wpa_change_nxt
wpa_change_ind
wpa_change_nxt_ind
wpa
wp_after
def_wp_after
home_wp_after
away_wp_after

meysubb/cfbscrapR documentation built on Dec. 15, 2020, 11:26 p.m.