Impute actual time using nominal time when actual is unavailable
impute_time_act_nom.Rd
Impute actual time using nominal time when actual is unavailable
Details
The rules used are the following, in order.
If
actual
is not missing, use it.If there is at least one non-missing
actual
for a givennominal
, take the medianactual
from thenominal
.If for a missing actual time, the actual time values are in order compared to the nominal time:
If both directions with nominal and actual times (before and after) are within 24 hours, interpolate between.
If only one direction with nominal and actual times (before or after) is within 24 hours, extrapolate in that direction ignoring the other direction.
See also
Other Imputation:
impute_dtc()
Other Date/time imputation:
impute_dtc()