This calls the function f_i()
, with optionally further arguments f_i_para
, to impute any missing
values found in x
. By default, f_i = "i_mean()"
, which simply imputes NA
s with the mean of the
non-NA
values in x
.
COINr has several built-in imputation functions of the form i_*()
for vectors which can be called by Impute()
. See the
online documentation for more details.
You could also use one of the imputation functions directly (such as i_mean()
). However, this
function offers a few extra advantages, such as checking the input and output formats, and making
sure the resulting imputed vector agrees with the input. It will also skip imputation entirely if
there are no NA
s at all.