Applies BLQ (Below Limit of Quantification) imputation rules to a statistic based on the proportion of BLQ observations and dosing timing.

imputation_rules(stat_val, label, blq_ratio, postdose, rule = "1/3")

Arguments

stat_val

(character(1))
formatted statistic value.

label

(character(1))
label identifying the statistic type (e.g. "Median", "Max").

blq_ratio

(numeric(1))
proportion of BLQ observations (between 0 and 1).

postdose

(logical(1))
whether the timepoint is post-dose.

rule

(character(1))
imputation rule to apply. One of "1/3" (default) or "1/2".

Value

A character string: the original stat_val, "ND" (not determined), or "NE" (not estimable).

Examples

imputation_rules("1.23", "Mean", blq_ratio = 0.5, postdose = TRUE, rule = "1/3")
#> [1] "ND"