Learn R Programming

drLumi (version 0.1.2)

get_outliers: Extract outliers from a scluminex object

Description

This function extracts outliers based on a residuals cutoff from scluminex object.

Usage

get_outliers(x, out.limit = 2.5)

Arguments

x
a scluminex object
out.limit
cutoff point for outliers

Value

A data.frame with samples whose standardized residual is greater than out.limit.

Details

The residuals are the standardized ones for nls models.

Examples

Run this code
# Load data and estimate models
data(ecdata)
data(mfidata)

dat <- mfidata[mfidata$plate=="plate_1" & mfidata$analyte=="FGF",]

# Select data and fit models
sdf <- data_selection(dat, ecdata)[[1]]
igmodels <- scluminex("plate_1",sdf$standard, sdf$background,
                      lfct=c("SSl4", "SSl5"),
                      bkg="ignore",
                      fmfi="mfi",
                      verbose=FALSE)

# Extract outliers > abs(2.5)
get_outliers(igmodels, out.limit=2.5)

# Extract outliers > abs(1.5)
get_outliers(igmodels, out.limit=1.5)

# Extract outliers > abs(1)
get_outliers(igmodels, out.limit=1)

Run the code above in your browser using DataLab