Hello Statalist,
I have a multiply imputed dataset that looks like this
Country A B C _mi_m
1 2 2 1 0
1 2 2 1 0
1 2 2 1 0
3 5 3 5 0
3 5 3 5 0
3 5 3 5 0
1 8 8 8 1
1 8 8 8 1
1 8 8 8 1
3 4 4 4 1
3 4 4 4 1
3 4 4 4 1
(note that the real dataset has more per Country observations and number of imputations. What is given above is just to show the format)
I'd like to generate a new variable X by adding the value of C in country1, country3, and etc together. According to the example above, I basically would like to have X=1+5 for the dataset _mi_m=0 and X=1+1 for the dataset _mi_m=1. Please how can I achieve this?
I use Stata 16.0
Best
Ikenna Egwu
Related Posts with Adding the scores of imputed group variable
Bar Graph - Highlight Specific BarArray I have generated the above graph using the following code : Code: graph bar, over(region) bl…
Linear regression model, volatility measure, stock return predictabilityHi, Statalist! I am writing a thesis on the stock market predictability, using a linear regression…
Average Net Migration RateHi all. Good Morning. This is my first post here, but I have been consulting you, thank you for your…
Marginsplot, legend and by()Dear Stata Users, I am producing a graph with marginsplot throug the following commands and options…
composing two different summary statistics tables with one dataset.Hello again, I'm working on a project on which I have to analyse VC-backed ICOs with non-VC-backed …
Subscribe to:
Post Comments (Atom)
0 Response to Adding the scores of imputed group variable
Post a Comment