Skip to content

Instantly share code, notes, and snippets.

@FthrsAnalytics
Created February 7, 2019 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FthrsAnalytics/e3f0b50e4dbefbe447e07d222bd89c3f to your computer and use it in GitHub Desktop.
Save FthrsAnalytics/e3f0b50e4dbefbe447e07d222bd89c3f to your computer and use it in GitHub Desktop.
model_data <- dataset
fantasy_lm <- lm(points_per_90 ~ now_cost + goals_scored + assists + clean_sheets, data = model_data)
model_data$score_lm <- predict(fantasy_lm, model_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment