convert_treatments_to_numeric function

Convert treatments from symbol/string format into numeric values.