Reconstructing Improper Values with Last Observation Carried Forward (LOCF)ΒΆ

Causal Step

This step replaces any improper values in the data vector with the value immediately preceding it.

Input Parameters

  1. Input data including improper values
  2. Definition of improper values (‘nan’, ‘inf’, or ‘null’, etc.)

Output Parameters

  1. Output data excluding improper values




  • J. Shao and B.Zhong, Last observation carry-forward and last observation analysis, Stat Med, vol. 22(15), pp. 2429-41, 2003.