Add option to replace 'nan' values with a specified value in the result of egen of new column