開始使用免費開始

資料較少時的 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)
編輯並執行程式碼