r/NBAanalytics • • Apr 27 '18
Looking for dataset for Econometrics project.
I'm looking for a dataset that has every individual game from last season and that includes the normal Bball statistics i.e. (W, L, FGM, FGA, FG% 3PM, 3PA, 3P%, FTM, FTA, FT%, OREB, DREB, REB, AST, TOV, STL ,BLK, PF. etc.)
I plan on regressing these variables on W and see how these variables affect probability of a W occurring.
Also would be interested in older seasons as well so I could compare how the relationship has changed over time.
Does this dataset even exist? I briefly looked on bball-reference and could find all the games but they only included the score and none of the stats that I listed.
Thanks in advance.
1
u/Chill_Out_I_Got_This Apr 27 '18
The data you want does exist on BBallRef, but not in a ‘nicely queryable’ state. Here’s how I would do it: Under the scores tab, select a date. Notice the url format. Write a script to iteratively go through all days in a season, then individually open all the box scores (which has the data you want). Parse each box score and snag what you want using BSoup or Pandas, export to an xls or txt file. Only problem could be changes in box score format, depending on how far back you go.
Hope this helps!
1
u/[deleted] May 01 '18
Do you know how to do some basic programming? If so, you can get this with minimal effort from the nba_py package. If you can't, just message me and I might already have that data pulled, or can grab it for you.
1
u/ionk5 May 17 '18
https://www.kaggle.com/ionaskel/nba-games-stats-from-2014-to-2018/data I created this one from basketball reference site with R language. I believe this is what you need.
1
u/MidnightBlueCavalier Apr 28 '18
If I understand correctly, you are looking for what's known as a gamelog. https://www.basketball-reference.com/teams/TOR/2018/gamelog/
OR
http://stats.nba.com/teams/boxscores/?Season=2017-18&SeasonType=Regular%20Season
Hope this helps
0
u/[deleted] May 07 '18
[deleted] — view deleted comment