Skip to contents

Get extreme values Get extreme values in the sample dataset

Usage

get_extremes(data, id = NULL, x = NULL, y = NULL, strata = NULL, na_rm = TRUE)

Arguments

data

Population data frame with additional variables from rate_model output

id

Name of identification variable as a string. Should be same in sample and data dataframes.

x

Name of the explanatory variable

y

Name of the statistic variable

strata

Name of the stratification variable

na_rm

Logical for whether to remove NA values. Default = TRUE.

Value

A data frame is return containing observations that have values that may be seen as outlier/extreme values