Typo - Chp [15], Lab 1, [Questionable Use of count() Function]
@mine-cetinkaya-rundel is already working on this.
Since Oct 15, 2024.
Assessment
This issue has not been assessed yet.
Description
-
Chapter number: 15
-
Section number: Lab: Foundations for statistical inference - Sampling distributions
-
Other location identifier, if any (e.g., figure number, table number, footnote number, etc.):
Section Titled:
Interlude: Sampling distributions -
Original text:
global_monitor %>% rep_sample_n(size = 50, reps = 15000, replace = TRUE) %>% count(scientist_work) -
Suggestion for corrected text:
global_monitor %>% rep_sample_n(size = 50, reps = 15000, replace = TRUE) %>% mutate(scientist_work = as.factor(scientist_work)) |> count(scientist_work, .drop = FALSE) -
Justification for suggestion:
As currently written, you will filter out samples with a 0% success rate. In order to include counts of 0, you need to code the variable of interest as a factor and use the.dropargument of thecount()function to retain all levels. Leaving out counts of 0 means graphing the sampling distribution will omit the left-most values. While this doesn't often occur with samples of size 50 and ample proportion p, can be an issue with small samples such as in Exercise 8 of this lab.
- Dominant language
- JavaScript
- Stars
- 948
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenIntroStat/ims
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenIntroStat/ims#542 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
OpenIntroStat/ims#534 ·
-
chp13
Difficulty 1/5 Under an hour Newbie friendliness 68/100
OpenIntroStat/ims#527 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
OpenIntroStat/ims#525 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
OpenIntroStat/ims#499 ·
All issues in OpenIntroStat/ims
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
web-platform-tests/interop#1455 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100