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

Imputing and inspecting outcomes

Good job on visualizing missing data in the previous exercise! You have discovered there are some missing entries in GDP, gdp_pc, and trade as percentage of GDP, trade. Also, you suspect the data are MAR, and thus imputable. In this exercise, you will make use of multiple imputation from the mice package to impute the africa data. Then, you will draw a strip plot of gdp_pc vs trade to see if the imputed data do not break the relation between these variables. Let mice do the job!

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

Handling Missing Data with Imputations in R

ดูคอร์ส

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

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

# Load mice
___

# Impute africa with mice
africa_multiimp <- ___(africa, m = ___, defaultMethod = ___, seed = 3108)
แก้ไขและรันโค้ด