Estimate a score offset from paired controls
Source:R/singlesample-cutoff.R
estimate_calibrator_offset.RdScore the same controls in a baseline run and a new run. Match the rows by
control identifier and take the median of the paired score changes (new
minus baseline). Pass the offset to classify_specimen() to shift new-run
scores onto the baseline score scale before applying the stored cutoff.
Usage
estimate_calibrator_offset(
deployable,
baseline,
new,
meta_baseline = NULL,
meta_new = NULL,
detected_baseline = NULL,
detected_new = NULL,
strict = FALSE
)Arguments
- deployable
A deployment object from
deploy_singlesample().- baseline, new
Control measurements with at least three rows per run. Use matrices or data frames in the format accepted by
score_specimen(). Supply unique, non-missing and non-empty control identifiers as explicit row names. Both runs must have the same identifiers. Row order may differ.- meta_baseline, meta_new
Optional metadata aligned to each run's rows.
- detected_baseline, detected_new
Optional detection masks aligned to each run's measurements.
- strict
Passed to
score_specimen().