forked from OpenIntroStat/oilabs-tidy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sample_props_small often has fewer than the requested 25 elements.
The call to filter(scientist_work == "Doesn't benefit") is filtering out any replicates where there are no "Doesn't benefit"s in the small sample. As a result any replicates with p_hat=0 are filtered out and are not displayed. This issue is caused by using a small sample size and a true proportion close to 0 (p=.2). I have replaced this filtering code with the following group_by(replicate)%>% summarize(p_hat = mean(scientist_work=="Doesn't benefit")) Fixes OpenIntroStat#107.
- Loading branch information
Showing
1 changed file
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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