In the NBA, are fouls more likely to be called on a team leading by a significant margin?

George C. Privon 4e0b2e9c8e strip trailing whitespace 6 gadi atpakaļ
code 7b4453aa80 fix relative path confusion 6 gadi atpakaļ
data c910549739 add download script from khondula 6 gadi atpakaļ
.gitignore e0031354f9 initial project description 6 gadi atpakaļ
README.md e0031354f9 initial project description 6 gadi atpakaļ
foul_bias.Rproj 4e0b2e9c8e strip trailing whitespace 6 gadi atpakaļ

README.md

NBA Foul Bias Analysis

If you've watched any NBA in the past decade you can see a trend of calling fouls against teams that are winning too heavily against favorites. It's not hard.

Is this true?

This project uses play by play data from Eight Thirty Four to answer this question.