检验婴儿平均体重
我们将以 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
___