✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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