Dear all users, this question was asked before from the stat list by another user. However the answer that was posted was use the egen anypsych= rowtotal (psych1-psych42). My problem is similar but the answer provided does not solve the issue. i want to create a variable fruit and under a food code an apple =120243 (code from nutritional software). i also have a string variable describing what the food is so i looked at the idea of possibly using regexm. As i have just reshaped my data there are 171 different food code variables so that is where I wanted to use the wildcard expression. if this post needs clarification please say
-
Login or Register
- Log in with
Comment