通过自助法生成
为了评估您对"高度"信任科学界这一比例估计的不确定性,您需要计算标准误。先从思考:在一个自助(bootstrap)样本中,数据可能会有多不同入手。
本练习是课程的一部分
R 中的分类数据推断
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Load the infer package
___
# Create single bootstrap dataset
boot1 <- gss2016 %>%
# Specify the response
___(response = ___, success = "___") %>%
# Generate one bootstrap replicate
___(reps = ___, type = "___")
# See the result
boot1