数据更少时的 SE
用于估计的数据越少,估计的不确定性就越大。这会体现在标准误(SE)上。在本练习中,您将通过查看不同规模的数据集来直观体会这种关系。
我们基于 gss2016 为您准备了两个更小的数据集:gss2016_small 含有 50 条观测,gss2016_smaller 只有 10 条观测。
本练习是课程的一部分
R 中的分类数据推断
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Create bootstrap distribution for proportion
boot_dist_small <- ___ %>%
# Specify the variable and success
___ %>%
# Generate 500 bootstrap reps
___ %>%
# Calculate the statistic
___
# See the result
glimpse(boot_dist_small)