View source: R/XY_differences.R
XY_differences | R Documentation |
From a collection of game scores, create a design matrix X and a vector of differences Y_diff to use for linear regression.
XY_differences(data)
data |
A data frame with columns for Team, Score, Year, and Week produced by scrape_games. Last 3 columns must be numeric. |
A list with 6 elements
G <- regssn2021
List <- XY_differences(G)
List$teams
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.