IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Inference for Numerical Data in R

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Filter for non-missing habit & non-missing weeks
ncbirths_complete_habit_weeks <- ncbirths %>%
  ___
Modifica ed esegui il codice