get_design | R Documentation |
Get design matrix and values from a season
get_design(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 of 9 components, including 2 design matrices (X, X_sum), and 3 vectors of observations of season data (Y_diff, Y_sum, Y_binary), the list of teams, original dataframe of scores, and date range of games.
games <- regssn2021
L <- get_design(games)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.