estimate_player_value_added: Calculate the 3 Types iPA and iPAA Values for Each Player

Description Usage Arguments Value Examples

Description

Calculate the 3 Types iPA and iPAA Values for Each Player

Usage

1
2
estimate_player_value_added(model_data_list, model_formula_list,
  return_models = 1)

Arguments

model_data_list

List of data frames:

  • "pass_model_df" - Passing play-by-play data

  • "rush_model_df" - Rushing play-by-play data

  • "QB_table" - Table of QBs

  • "RB_table" - Table of RBs

  • "WR_table" - Table of WRs

  • "TE_table" - Table of TEs

model_formula_list

List of the following formulas:

  • "air_formula" - Formula for airEPA/airWPA model.

  • "yac_forumla" - Formula for yacEPA/yacWPA model.

  • "qb_rush_formula" - Formula for QB rushing/sacks model.

  • "main_rush_formula" - Formula for non-QB rushing model.

return_models

Indicator for whether or not the models should be return in the list (default is yes, 1).

Value

Only return the original position tables from the input but modified so that the following columns are included:

as well as the resulting models:

Examples

1
2
3
# Estimate the player effects and get the iPA and iPAA values:
model_data_list <- model_data_list %>%
  estimate_player_value_added(model_formula_list, "none")

ryurko/nflWAR documentation built on May 9, 2019, 7:37 a.m.