bpencode is a Stata package that allows users to encode a variable using other variable or an Excel file. Unlike encode, it's possible to use this command with a numeric variable in order to label its values. For further details please check BPLIM GitHub repository.