Converts a threshold from the covariate scale used in the gate model back to the original biomarker scale.
Usage
mbmm_backtransform_threshold(
threshold,
center = 0,
scale = 1,
transform = c("identity", "log10", "log")
)Details
If the fitted covariate is a standardized variable
$$ z = \frac{x - \mu}{s}, $$
the model-scale threshold is first converted to
$$ x = \mu + sz. $$
An optional inverse transformation is then applied. For example, when the
standardized covariate was constructed from log10(biomarker), use
transform = "log10".