Contact Details
Jane Robertson Evia, jane.robertsonevia@vt.edu
Bug
I think there are errors in the Foundations of Inference 2 - Randomization Test lab (for R). Starting in the 'What is a p-value' section, the p-value reported for this example is 0.03 (which seems to be correct). However, in the 'Calculating the p-values' section, when you run the code for the original differences, you get a p-value of 0.996 (which is neither 0.03 nor 1-0.03). This error continues through this lab anytime you use use diff_orig. Also, the graph just under the 'What is a p-value' header doesn't appear to be marked in alignment with the text below (discussing the 0.1, 0.05 and 0.01 quantiles).
Reproducible Example
From @hardin47: I haven't taken the time to dig into the problem yet.
Expected Behavior
p-values should match.
Session Info
No response
Additional context
No response