I would like to create variables per id group using the separate command following this example:

Code:
sysuse xtline1. dta, replace

separate calories, by(person) g(calories_)
The operation works and adds 3 new variables:
Code:
calories_1, calories_2, and calories_3
I would like to know if it's possible for the command to generate the variables by adding the "person" labels or group. For example:

Code:
calories_Sam calories_Arnold calories_Tess
Many thanks,

Firmin.