Remove outliers

remove_outliers(
  .data,
  ...,
  init_low = 8000,
  init_high = 40000,
  init_diff = 1200,
  param49_off = 1,
  internal_sd = 0.15,
  n_min = 5,
  n_id1 = 5,
  nsd_off = 4,
  D47 = D47_raw,
  session = Preparation,
  id1 = `Identifier 1`,
  quiet = NULL
)

Arguments

.data

A tibble, resulting from collapse_cycles().

...

These dots are for future extensions and must be empty.

init_low

Minimum initial intensity threshold for mass 44.

init_high

Maximum initial intensity threshold for mass 44.

init_diff

Maximum initial difference in mass 44 threshold between standard and sample gas.

param49_off

Where param_49 > this value is considered an outlier.

internal_sd

The internal standard deviation outlier cutoff.

n_min

Minimum number of aliquots within session to calculate threshold.

n_id1

Minimum number of aliquots within session to calculate threshold within group.

nsd_off

The number of standard deviations away from the median Preparation of the standards.

D47

The column with \(\Delta_47\) values. Defaults to D47_raw_mean.

session

Column name that defines correction session.

id1

Column name of the sample/standard identifier.

quiet

If TRUE, print info messages. If NULL (default) listens to options(clumpedr.quiet)

Details

This function removes outliers based on several criteria. 1) The initial intensity of both sample and reference gas is above 8 V. 2) The difference in intensity between sample and reference gas is less than 1.2 V. 3) The sample or reference raw \(\Delta_47\) value is less than 4 SD away from the preparation mean.