Grubbs' test
We've now checked that the data are normal. Now let's apply Grubbs' outlier test!
Grubbs' test assesses whether the value that is farthest from the mean is an outlier - the value could be either the maximum or minimum value. The test is performed using the grubbs.test() function from the outliers package:
grubbs.test(x)
xis the input data as a numeric vector
Это упражнение является частью курса
Introduction to Anomaly Detection in R
Инструкции к упражнению
- Run the Grubbs' test on the
nitrateconcentrations.
Интерактивное практическое упражнение
Попробуйте выполнить это упражнение, дополнив этот пример кода.
# Apply Grubbs' test to the river nitrate data
___(___)