Convert Standard Industrial Classification (SIC) Code variable to a Fama French Industry variable.
Install from Stata: ssc install sicff
Update the package from Stata: ado update sicff, update
See Stata help file for details.
See Ken French's data library for details on the industry portfolios.