Skip to contents

Draws the model-implied statistic against the sensitivity value (points and line), the observed statistic (solid horizontal line) with its confidence limits (dashed), and the calibrated value (dotted vertical line).

Usage

# S3 method for delta_calibration
plot(x, ...)

Arguments

x

A delta_calibration.

...

Passed to plot.

Value

Invisibly, the curve data frame (x$curve sorted by the sensitivity value). Called for its side effect, the plot.

Examples

sim <- simulate_ema(N = 40, n_prompts = 30, motifs = "M2", delta = -1, sensor_cor = 0.6, seed = 3)
prof <- tilt_profile(sim$data, sim$vars, delta_grid = c(-1.5, -1, -0.5, 0))
cs <- calibrate_delta(prof, sim$data, method = "sensor")
plot(cs, main = "Sensor calibration")