Skip to contents

curveR Ecosystem Entry Points

The recommended API for users coming from curveRfreq or curveRbayes. as_weight_data() converts a calibration_result(_multiplate) into the standardised input frame. fit_precision_weights() estimates phi and beta1. predict_weights() applies fitted weights to new data. join_weights() attaches weights back onto a sample data frame.

as_weight_data()
Build precision-weight input from a curveR calibration result
fit_precision_weights()
Estimate precision weights from a curveR calibration result
predict_weights()
Apply fitted precision weights to new observations
join_weights()
Join estimated weights back onto a data frame

Additive measurement-error model

The additive model sigma^2 = tau^2 + kappa^2 se^(2 beta1): weights are bounded by 1/tau^2, each sample gets a reliability, and out-of-range samples enter through a censored likelihood. See the measurement-error and downstream-analysis articles.

fit_additive_weight()
Fit the additive measurement-error model (signal + measurement variance)
prepare_censoring()
Prepare censored observations for the additive weight model
compute_additive_weights()
Compute additive-model weights, reliability and measurement variance
normalize_weights()
Normalize weights to mean 1 within an analysis subset
meas_variance()
Measurement variance of each observation

Measurement-error corrections

For analyses in which the noisy variable is a predictor: regression calibration and correction of correlations for attenuation.

reliability_correct()
Regression calibration: shrink measured values toward their cell mean
attenuation_correct()
Correct a correlation for attenuation by measurement error

Precision Index Preparation

Functions that compute and diagnose the precision index used as the scale predictor. prepare_cv() builds yi, cv_i, and log_cv from concentration and precision columns. diagnose_cv() checks whether the precision index has enough variation to identify beta1. interpret_beta1() classifies the estimated exponent into human-readable regimes.

prepare_cv()
Prepare the Precision Index from Calibration Curve Output
diagnose_cv()
Diagnose Precision Index Variation for Scale Estimation
interpret_beta1()
Interpret the Estimated Beta1 Value

Weight Computation

Deterministic weight computation from estimated scale parameters and summary diagnostics for the resulting weight distribution.

compute_saturated_weights()
Compute Precision Weights from Estimated Scale Parameters
weight_diagnostics()
Compute Summary Diagnostics for Precision Weights

Core Fitting Engine

Lower-level functions that fit the joint Bayesian location-scale model via brms. fit_saturated_weight() fits one group; fit_saturated_weight_batch() loops over multiple groups. apply_saturated_weights() applies a saved scale_table to new data without refitting.

fit_saturated_weight()
Fit a Bayesian Location-Scale Model with Saturated Location and Shared Scale
fit_saturated_weight_batch()
Fit Saturated Weight Models Across Multiple Groups
apply_saturated_weights()
Apply Previously Estimated Scale Parameters to New Data

Example Dataset

Anonymised Luminex multiplex immunoassay data for testing and documentation.

example_assay
Example Luminex Multiplex Immunoassay Data