define_loq: Check and standardize limits of quantification

View source: R/define_loq.R

define_loqR Documentation

Check and standardize limits of quantification

Description

Check and standardize limits of quantification

Usage

define_loq(
  lloq = NULL,
  uloq = NULL,
  pred_corr = FALSE,
  pred_corr_lower_bnd = 0,
  require_loq
)

Arguments

lloq

Number or NULL indicating lower limit of quantification. Default is NULL.

uloq

Number or NULL indicating upper limit of quantification. Default is NULL.

pred_corr

perform prediction-correction?

pred_corr_lower_bnd

lower bound for the prediction-correction

require_loq

Is at least one of lloq or uloq required?

Value

A list with elements "lloq", "uloq", "cens_limit", "pred_corr", "pred_corr_lower_bnd", and "cens_type". "cens_limit" indicates the range for censoring (c(lloq, uloq), NULL if neither is given), "cens_type" indicates whether the data are "left" censored (low values are censored, only), "right" (high values are censored, only), "both" (low and high values are censored), or "neither" (no values are censored).


ronkeizer/vpc documentation built on May 11, 2023, 11:09 p.m.