Learn R Programming

nhlscrapr (version 1.8)

NP.score: Calculate NP-tau score

Description

Calculates the Net Probability score from a game table.

Usage

NP.score(grand.data, seconds=20)

Arguments

grand.data
A single data frame of all events to be considered.
seconds
The amount of time in seconds after the event with which we measure net goals.

Value

A table containing the goal counts for each team following the particular events and zones, as well as the calculated net probability.

References

Michael Schuckers and James Curro (2013) Total Hockey Rating (THoR): A comprehensive statistical rating of National Hockey League forwards and defensemen based upon all on-ice events. Sloan Sports Conference.