ComenzarEmpieza gratis

Quantifying the relationship between smoking during pregnancy and birth weight

Let's construct a bootstrap interval for the difference in mean weights of babies born to smoker and non-smoker mothers. The ncbirths_complete_habit data frame you created earlier is available to use.

Este ejercicio forma parte del curso

Inference for Numerical Data in R

Ver curso

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Generate 1500 bootstrap difference in means
diff_mean_ci <- ncbirths_complete_habit %>%
  # Specify weight vs. habit
  ___ %>%
  # Generate 1500 bootstrap replicates
  ___ %>%
  # Calculate the difference in means, nonsmoker then smoker
  ___
Editar y ejecutar código