เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

SE with less data

The less data that you have to make an estimate, the more uncertainty you will have in that estimate. This is reflected in the standard error. In this exercise you'll develop a feel for this relationship by looking at datasets of different sizes.

Two new smaller datasets have been created for you from gss2016: gss2016_small, which contains 50 observations, and gss2016_smaller which contains just 10 observations.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Inference for Categorical Data in 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)
แก้ไขและรันโค้ด