matloff / fasteR

Fast Lane to Learning R!
958 stars 154 forks source link

minor typo #4

Closed r2evans closed 1 year ago

r2evans commented 4 years ago

Uh, oh! 5 women in the study had glucose level 0. And 44 had level 1, etc. Presumably this is not physiologically possible.

The way I'm interpreting it, the numbers are reversed. If you mean that "glucose = 44 had one observation", then my interpretation is wrong.

> table(pima$glucose)

  0  44  56  57  61  62  65  67  68  71  72  73  74  75  76  77  78  79  80  81 
  5   1   1   2   1   1   1   1   3   4   1   3   4   2   2   2   4   3   6   6 
...

Suggested replacements:

And while WebMD says that 60 may be a "normal" pre-meal low (ref), I don't know the physiological possibility of 44. Since your follow-on fixing code addresses only the five 0s, perhaps the replacement should instead be:

Thanks, nice guide!

matloff commented 3 years ago

Thanks, changed. I think I fixed the first part at the time you posted this. Very sorry for the delay.