Rosner's test for outliers

rosner_test(df, x = "analysis_result", k = 3, alpha = 0.05,
  warn = TRUE, group_by_location = FALSE, keep_data_object = FALSE)

Arguments

df

data.frame of groundwater data

x

column of analysis results

k

number of suspected outliers. Default is 3.

alpha

numerical scalar bewteen 0 and 1 indicating the Type I error

warn

logical scalar indicating whether to issue a warning (warn=TRUE; the default) when the number of non-missing, finite values in x and the value of k are such that the assumed Type I error level might not be maintained.

group_by_location

TRUE/FALSE

keep_data_object

TRUE/FALSE to return entire gofOutlier object