Imputing in-stream mean or median>