Ch 5: R code for simulation
Closed this issue · 1 comments
mine-cetinkaya-rundel commented
- I suggest explicitly writing out
250000000
instead of250e06
since some students won't be familiar with the latter notation. - Also, to be explicit I'd define
possible_entries
as
pop_size <- 250000000
possible entries <- c(rep("support", pop_size * 0.887), rep("not", pop_size * 0.113))
- We're looking for
sampled_entries == "support"
not"justified"
, right?
OpenIntroOrg commented
Thanks, all three items are now fixed.