06.09.2021 Views

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the middle man <strong>and</strong> use a comm<strong>and</strong> like which( afl.margins > 300 ). In any case, what this has done<br />

is shown me that the outlier corresponds to game 137. Then, I find the recorded margin <strong>for</strong> that game:<br />

> afl.margins[137]<br />

[1] 333<br />

Hm. That definitely doesn’t sound right. So then I go back to the original data source (the internet!)<br />

<strong>and</strong> I discover that the actual margin of that game was 33 points. Now it’s pretty clear what happened.<br />

Someone must have typed in the wrong number. Easily fixed, just by typing afl.margins[137]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!