IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Modeling with Data in the Tidyverse

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

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

# Get regression table
___(model_score_4)
Modifica ed esegui il codice