1. Learn
  2. /
  3. Courses
  4. /
  5. Inference for Numerical Data in R

Connected

Exercise

Median lengths of pregnancies for smoking and non-smoking mothers

Let's turn our attention to another variable, weeks, indicating the length of the pregnancy. Construct a bootstrap interval for the difference in median lengths of pregnancies of smoker and non-smoker mothers.

Instructions 1/3

undefined XP
    1
    2
    3

Filter ncbirths for rows where smoking habit and length of pregnancy in weeks are both non-missing.