simulate_player_value_added: Simulate to Estimate Player Effects Variance and Intervals

Description Usage Arguments Value Examples

Description

Simulate to Estimate Player Effects Variance and Intervals

Usage

1
simulate_player_value_added(model_data_list, n_sim = 1000)

Arguments

model_data_list

List that must have the following:

  • "QB_table" - Table of QBs

  • "RB_table" - Table of RBs

  • "WR_table" - Table of WRs

  • "TE_table" - Table of TEs

  • "air_model" - Model fit for air component

  • "yac_model" - Model fit for yac component

  • "qb_rush_model" - Model fit for QB rushing/sacks

  • "main_rush_model" - Model for for all non-QB rushing attempts

n_sim

Number of simulations (default is 1000)

Value

The input model_data_list but with each position table modified so that upper/lower estimates for each iPA and iPAA value are estimated from +/- two standard deviations from the simulations.

Examples

1
2
3
# Simulate the player effects and get intervals for the iPA and iPAA values:
model_data_list <- model_data_list %>%
  simulate_player_value_added(model_data_list, n_sim = 1000)

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