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

A single permuted Chi-sq

The key to generating data under a null hypothesis of independence is permutation. Generate just a single dataset to see what sort of chi-squared statistic you might observe when in fact these two variables are independent of one another.

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

Inference for Categorical Data in R

ดูคอร์ส

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

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

# Create one permuted dataset
___ <- ___
  # Specify the variables of interest
  ___
  # Set up the null
  ___
  # Generate a single permuted dataset
  ___
แก้ไขและรันโค้ด