normalize_potency_weights: Rescale potency weights to match the unweighted QTBI scale

View source: R/potency.R

normalize_potency_weightsR Documentation

Rescale potency weights to match the unweighted QTBI scale

Description

When potency weights are applied at readout, rescale them so their sum equals the number of exposures in the panel. This keeps weighted QTBI on the same [0, n] scale as the unweighted sum of marginals, which aids comparison between weighted and unweighted analyses.

Usage

normalize_potency_weights(weights, target_sum = NULL)

Arguments

weights

Named numeric vector of raw potency ratios from potency_weights_from_reference_doses().

target_sum

Target sum for the rescaled weights. Defaults to the number of exposures (length(weights)).

Value

Named numeric vector of rescaled weights aligned with weights.


qtbi documentation built on June 9, 2026, 5:09 p.m.