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
Gen date variable with missing valuesHi, i want to loop to convert my strings data date starting by "d" into date format. But I have vari…
Wild bootstrap Fixed and Random effects model.Dear Statalist, The topic of my thesis is "How firm specific characteristics affect a firm's Cash ho…
Trial FriI am looking for guidance on interpreting my results from running a rsktest. Below are my results wh…
Difficulty interpreting Skewness and Kurtosis ResultsI am looking for guidance on interpreting my results from running a rsktest. Below are my results wh…
Growth model - No convergenceI would like to develop a latent growth model (LGM) with Stata. The point is to illustrate estimated…
Subscribe to:
Post Comments (Atom)
0 Response to Combining the values of different categories into ONE with a repeated ID
Post a Comment