Hello Users,
Please help with data transformation.
The current data format:
sub-var1 sub-var2 sub-var3
var1 2 5 7
var2 9 10 6
var3 3 8 1
sub-var4 sub-var5 sub-var6
var4 0 4 7
I want to transform them into:
var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 var11 var12
2 5 7 9 10 6 3 8 1 0 4 7
Thank you very much.
Lynn
Related Posts with combine columns and rows into one row
Is Stata freaking out?This question is perhaps a bit weird. I've run the same do-file on the same .dta file multiple times…
Moderating Vs. average marginal effects of the modelsHi, Statalisters: I am not so much good in posting on the forum, please excuse me for not adhering t…
Help with summary tableI want to create a table like the one in the attached photo, showing the average values of my variab…
Event study with thin trading and many events(clustering)I am doing an event study on the transfer market in football. However during this research, I have e…
Endless iteration using Panel Data ppml zero-inflated poissonI have a dataset of 5 years panel data of more than 30,000 cities. However, when I run regression pp…
Subscribe to:
Post Comments (Atom)
0 Response to combine columns and rows into one row
Post a Comment