MATH 456 Quiz 05
Given on 2026-03-10
Suppose you have numeric variables x, y, z and categorical variables
g, h, from a data frame named df, and with this data set, you fit the
following model.
library(ggplot2)
suppressMessages(library(dplyr))
fit <- lm(y ~ g + h * x + I(z * z), data = df)
-
Make a
ggplot2histogram of stanrdardized residuals. -
Make a
ggplot2scatter plot of stanardized residuals onyhat.. -
If
ghas levelsg1, g2andhhas levelsh1, h2, h3, usepredictto make a prediction fromfitfor an observation ofg1andh3withx = 3andy = 10.