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

3 kinds of sampling

Let's compare the performance of point estimates using simple, stratified, and cluster sampling. Before we do that, you'll have to set up the samples.

In these exercises, we'll use the RelationshipSatisfaction column of the attrition dataset, which categorizes the employee's relationship with the company. It's an ordered factor with four levels: Low, Medium, High, and Very_High.

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

Sampling in R

ดูคอร์ส

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

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

# Perform simple random sampling to get 0.25 of the population
attrition_srs <- ___
แก้ไขและรันโค้ด