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
Interpreting significance - HLM using REML and Kenward-Roger-corr.Dear Statalisters, I struggle with interpreting my results from multilevel linear regressions, usin…
Replace observations with another group in Panel dataHi, I have panel data and I want to replace observations of one group with the same variable's obser…
Calculate volatility of daily returns by use of GARCHHi, We try to calculate the forecasted implied volatility of daily returns by use of the GARCH (1,1…
Comparing non nested models with xtmelogitDear all, I am using xtmelogit to run a multilevel logistic regression with PISA data. My data is h…
LOOP ERROR no observations definedDear Stata Users I have been running a loop for each out of 5 years. Code: clear all cd "\\regist…
Subscribe to:
Post Comments (Atom)
0 Response to Combining the values of different categories into ONE with a repeated ID
Post a Comment