Tidy model outputs with broom
You're trying to predict a person's weight based on their waist circumference and stature (height). To do so you're using the US army body measurement dataset ANSUR II. The model has already been trained for you using this code:
model <- lm(weight_kg ~ waist_circum_m
+ stature_m, data = ansur_df)
You will use the broom package's glance() and tidy() functions in the console to inspect model outputs in a tidy format.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Reshaping Data with tidyr
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำจริง
เปลี่ยนทฤษฎีให้เป็นการลงมือทำด้วยแบบฝึกหัดเชิงโต้ตอบหนึ่งในของเรา
เริ่มแบบฝึกหัด