Skip to contents

Internal helper that fills NA or non-positive sigma values in a filtered ata factor table. Three methods are supported: "min_last2", "locf", and "loglinear". See Details.

Usage

.extrapolate_sigma_ata(x, method = c("min_last2", "locf", "loglinear"))

Arguments

x

A data.table with ata_from and sigma columns, typically the output of .filter_ata().

method

One of "min_last2" (default), "locf", or "loglinear".

Value

A data.table with missing sigma values filled and a new logical column sigma_extrapolated flagging imputed rows.