檢定寶寶的平均體重
我們將以 ncbirths 資料集作結,聚焦在表示新生兒出生體重的變數 weight。這些資料是否能提供足夠證據,說明北卡羅來納州出生的寶寶,其平均出生體重與 7 磅不同?
本練習屬於課程
R 數值資料推論
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
n_replicates <- 1500
weight_mean_ht <- ncbirths %>%
# Specify weight as the response
___ %>%
# Set the hypothesis that weights are 7 pounds
___ %>%
# Generate 1500 bootstrap replicates
___ %>%
# Calculate the mean
___