This method is also called the single imputation method. A certain number of neighbors on each side of the missing value are considered when estimating the missing value. This value is called n, and the total number of neighbors evaluated is 2n. The missing data is replaced by the mean or median of the 2n data points. The default value for n is 1, and the default statistic is Mean.
Note: | To preserve the local nature of time series data, the number of neighbors on each side of the missing value or values should be small, ideally n = 1 or n = 2. |