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

Using margin of error functions in tidycensus

While the Census Bureau API and tidycensus return pre-computed margins of error for you, you may want to derive new estimates from downloaded ACS data and in turn understand the margins of error around these derived estimates. tidycensus includes four functions (listed below) to help you with these tasks, each of which incorporates the recommended formulas from the US Census Bureau.

  • moe_sum()
  • moe_product()
  • moe_ratio()
  • moe_prop()

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

Analyzing US Census Data in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Calculate a margin of error for a sum
___(___ = c(55, 33, 44, 12, 4))
แก้ไขและรันโค้ด