Repository navigation
Fix course mismatches found in a full re-audit - #59
Merged
Merged
Conversation
Every lesson code block and exercise was re-run in native R against the current data. No quoted number was wrong; these fix places where an explanation, check or simulation did not match what students see: - m3-1-b, m4-3-a, m10-3-b, m14-3-a: checks that missed the lesson's own trap or rejected a correct answer (range() rows, older ggplot2 themes, aggregate() matrix columns, ML instead of REML) - m12-3-a: drop the claim that any non-Tukey method is more conservative - 12-1 quiz: lm() matches the pooled t-test, Welch assumes less - 15-2: introduce exp() as an odds ratio before the exercise that uses it - 16-3: the BayesFactor default prior can change the evidence label - 17-1: fixed.x = FALSE so lavaan does not drop bootstrap draws - 17-2: the pressure/support example now has the data's positive sign - Distribution sim: keep the cut-off inside the slider range
…wo-row summarise()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: a few exercise checks rejected a correct answer or misread a common one, a handful of explanations did not match what the exercise or data shows, and the normal-distribution simulation could show an area for a cut-off the slider no longer displayed.
After: every lesson code block (298) and every exercise solution, alternate and wrong answer (89 exercises) was re-run in native R against the current CSVs, including lme4, lmerTest, emmeans, BayesFactor, brms and lavaan. No quoted number was wrong. These are the fixes:
theme_classic()blankspanel.grid.major/.minor.numeric_columns(), so a correctaggregate()answer is no longer rejected.REML = FALSE, which the book recommends) now gets an explanation instead of a bare number mismatch.exp()as an odds ratio before the exercise that asks for one.fixed.x = FALSEso lavaan does not silently drop about a quarter of its bootstrap draws.How: native R 4.3 from the Ubuntu archive, a harness that runs each check through the same
wrapCheckpreamble assrc/r/checker.ts. Type check, static validation and all unit tests pass locally; the webR suite runs in CI. (A first attempt at an m3-1-b branch forrange()insidesummarise()was dropped: the site's dplyr already stops with an error there.)