Skip to contents

Loads previously saved SEC calibration parameters for use in step_sec_conventional_cal(). This enables reusing established calibrations without refitting.

Usage

load_sec_calibration(file)

Arguments

file

Path to the calibration file (.rds or .yaml/.yml).

Value

A sec_calibration object that can be passed to the calibration argument of step_sec_conventional_cal().

Details

The loaded calibration can be used in two ways:

  1. Direct use: Pass to step_sec_conventional_cal(calibration = cal) to skip fitting and use the pre-established calibration.

  2. Inspection: Use print() or summary() to view calibration details.

Examples

if (FALSE) { # \dontrun{
# Load a saved calibration
cal <- load_sec_calibration("ps_calibration.rds")
print(cal)

# Use in a recipe (no fitting needed)
rec <- recipe(~., data = new_samples) |>
  step_sec_conventional_cal(calibration = cal) |>
  prep()
} # }