✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Suppose you want to model the stopping distances of cars (dist) based on their speed (speed). Your task is to test for the presence of outliers in the data using Grubbs' test.
library(outliers) data("cars") head(cars)
Use the grubbs.test function from the