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

Fitting a regression with a categorical x

You'll now fit a regression model with the categorical variable rank as the explanatory variable and interpret the values in the resulting regression table. Note here the rank "teaching" is treated as the baseline for comparison group for the "tenure track" and "tenured" groups.

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

Modeling with Data in the Tidyverse

ดูคอร์ส

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

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

# Fit regression model
model_score_4 <- lm(___ ~ ___, data = evals)

# Get regression table
___(model_score_4)
แก้ไขและรันโค้ด