Classify pcov gate membership for a set of points on one curve
Source:R/pcov_gates.R
classify_pcov_gate.RdClassify pcov gate membership for a set of points on one curve
Usage
classify_pcov_gate(
x_log10,
pcov,
pcov_threshold,
lloq_log10 = NA_real_,
uloq_log10 = NA_real_,
inflect_x = NA_real_
)Arguments
- x_log10
Numeric vector. log10-scale position:
predicted_log10_ concentrationfor test samples,log10_concentrationfor grid points.- pcov
Numeric vector. Percent CV at each
x_log10. Only used in the fallback branch (when LLOQ and/or ULOQ are undefined).- pcov_threshold
Numeric scalar. Only used in the fallback branch.
- lloq_log10, uloq_log10
Numeric scalars (log10 scale), or
NAif undefined for this curve/model.- inflect_x
Numeric scalar (log10 scale). Only used in the fallback branch, to decide which side of the curve a failing point falls on. If
NAand a point fails, that point'spcov_gate_classstaysNA(we know it fails, we just can't say which side) whilepcov_passis still correctlyFALSE.
Value
A data.frame with columns:
- pcov_gate_class
Factor:
belowLLOQ/inDynamicRange/aboveULOQ/NA. In the fallback branch, a failing point with noinflect_xavailable isNAhere (we know it fails, not which side).- pcov_pass
Logical, computed independently of
pcov_gate_class(NOT derived from it):TRUE/FALSEwhenever the point could be evaluated at all,NAonly whenx_log10(or, in the fallback branch,pcov) itself is unusable. A failing point with unknown side ispcov_gate_class = NAbutpcov_pass = FALSE, neverNA.
Row count and order match the input vectors exactly.