R Data Analysis Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Replacing missing values with the mean

When you disregard cases with any missing variables, you lose useful information that the non-missing values in that case convey. You may sometimes want to impute reasonable values (those that will not skew the results of analysis very much) for the missing values.