It would be nice if the example showed how to mean imputation (I've used it before, and it may be too late to stop) according to by variables rather than the mean of the whole data set. Thanks.