Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Typo - Chp [15], Lab 1, [Questionable Use of count() Function]

オープン
#489 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@mine-cetinkaya-rundel がすでに取り組んでいます。

2024年10月15日 から。

評価

この issue はまだ評価されていません。

説明

  • 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 .drop argument of the count() 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.

主要言語
JavaScript
スター
948
フォーク
211
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenIntroStat/ims のほかの issue

OpenIntroStat/ims の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。