Simple fork of Stata's collapse command, preserves missings