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

Replication

Recall that replication means you need to conduct an experiment with an adequate number of subjects to achieve an acceptable statistical power. Sample size and power will be discussed in more detail later in this chapter.

Let's examine the ToothGrowth dataset to make sure they followed the principle of replication. We'll use dplyr to do some exploratory data analysis (EDA). The data has already been loaded for you.

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

Experimental Design in R

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Load the dplyr package.
  • Use count() to determine how many guinea pigs were given each supplement and dose.

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

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

# Load dplyr
___

# Count number of observations for each combination of supp and dose
___ %>% 
    ___
แก้ไขและรันโค้ด