
Fit Frequentist Calibration Curves Across Multiple Curves
Source:R/fit_multiplate.R
fit_calibration_freq_multiplate.RdSplits preprocessed standards, blanks, and optionally samples by
curve_id, calls fit_calibration_freq() for each curve, and
collects the results.
Usage
fit_calibration_freq_multiplate(
standards,
blanks = NULL,
samples = NULL,
response_var,
model_names = c("logistic4", "gompertz4"),
is_log_response = TRUE,
is_log_independent = TRUE,
std_curve_conc,
fixed_a = NULL,
cv_x_max = 150,
n_grid = 200L,
grid_min_conc = 1e-04,
grid_max_conc = NULL,
curve_ids = NULL,
on_error = c("warn", "stop"),
verbose = FALSE
)Arguments
- standards
Data frame. Stacked preprocessed standard curve data. Must contain a
curve_idcolumn, a response column (named byresponse_var), and aconcentrationcolumn — all already on the fitting scale.- blanks
Data frame or NULL. Stacked preprocessed blank data. When non-NULL, must contain a
curve_idcolumn and a response column (named byresponse_var), both already on the fitting scale. Stored in eachresult$blanksfor QA and plotting only — not used in fitting. NULL (default) leavesresult$blanksempty for every curve.- samples
Data frame or NULL. Stacked sample data with a
curve_idcolumn and the response column (raw measurement scale).- response_var
Character. Name of the response column.
- model_names
Character vector. Models to fit. Default
c("logistic4", "gompertz4").- is_log_response
Logical. Was the response log10-transformed? Default TRUE.
- is_log_independent
Logical. Was concentration log10-transformed? Default TRUE.
- std_curve_conc
Numeric. Undiluted standard concentration (raw scale). Used for grid generation.
- fixed_a
Numeric or NULL. Fixed lower asymptote on the fitting scale.
- cv_x_max
Numeric. Default 150.
- n_grid
Integer. Default 200.
- grid_min_conc
Numeric. Default 1e-4.
- grid_max_conc
Numeric or NULL.
- curve_ids
Optional vector. If supplied, only these curve_ids are fitted. Default NULL fits all found in
standards.- on_error
Character.
"warn"(default) stores NULL and continues;"stop"raises on first failure.- verbose
Logical.
Details
Important: standards and blanks must already be on the fitting
scale. Use curveRcore::preprocess_standards() upstream on each curve's
data before stacking, or preprocess the full stacked frame if all
curves share the same settings.