get_rpm: Compute the real-plus minus

Description Usage Arguments

View source: R/plus_minus.R

Description

This function computes real plus minus and threshold by minutes player if requested

Usage

1
2
get_rpm(design_matrix, threshold = 0, minutes, response = "goal",
  type = "both")

Arguments

design_matrix

0, -1, 1 matrix with info about shots and goals

threshold

for minutes, by default 0

minutes

dataframe with minutes info by player

response

character to chose as response, either goal, or shots

type

can be offensive, defensive or both which takes the differnce in the response


fmatano/PlusMinusData documentation built on May 28, 2019, 11:31 a.m.