Your NameMay 21, 2026
mtcars
model <- lm(mpg ~ wt + factor(cyl), data = mtcars) predict(model, data.frame(wt = 3.0, cyl = 6))
1 20.11837