I have a variable (foodgr) which is divided into 4 categories (1,2,3,4).
I have another variable, volume, which lists the weight of each of these categories.
I want to create another variable which combines the volume of all of these 4 categories into one.
The only thing is that the volume for each of these categories was measured every week, and hence I have multiple data entries from the same ID
Could Anyone please advise me on how to create a new variable where the volume of the foodgr variable is combined?
THANKYOU
Related Posts with Combining the values of different categories into ONE with a repeated ID
VSELECT command not workingHello! I am trying to use the following Vselect command and am getting the following error message. …
Stata doesn't report an error code when it was blocked from running regressions, what's wrong?I ran a lot of regressions in a loop statement in the server and found I didn't get the output, in t…
Interpreting z-value output from ivregress 2sls and query about bar chartsHi all, This is my first post but i'll try to make my questions as clear as possible. To be clear t…
Panel data regression weird ORDear statalist community, Thank you all in advance for taking the time to read this post and help m…
Copy variables (basic problems)Hi, I would love some help! I try to copy the personal tax in 2002 to all years. My initial data l…
Subscribe to:
Post Comments (Atom)
0 Response to Combining the values of different categories into ONE with a repeated ID
Post a Comment