Hi, I have data where i am looking at IDs, a test for different genes and extra information. I am trying to convert this into wide format so that for each ID i have the results of each gene test with the extra information attached. So far i have created a status variable so the data (simplified) has this form:
ID Gene ExtraInfo Status
1 1 1 Y
2 1 2 Y
3 1 3 Y
1 2 4 Y
3 2 6 Y
I want to be able to reshape the data so that it has the following form:
ID Gene1 ExtraInfo1 Gene2 ExtraInfo2
1 Y 1 Y 4
2 Y 2
3 Y 3 Y 6
Is it possible to do this?
Thanks
Cydney
Related Posts with Struggling with reshape
Panel Data CEO-firm fixed effectsDear Statalists, I am new to Stata. I have one inquiry on performing the CEO-firm fixed effects for…
Query regarding the Hansen statistic obtained after xtabond2Hello, I have a question regarding running the xtabond2 command, with alternating years of data. I …
Cleaning dataHi, first post on stata forum here: Hello. I have a survey dataset with lots of -5, -4, -3, -2, -1 f…
Regressions on each sample after propensity score matchingDear All I have not used propensity score matching before. I read lots of materials but I am still c…
Command -ritest- for randomization inference in Stata now available from SSC.Thanks to Kit Baum, -ritest- is now available for download from SSC. -ritest- is a module to conduct…
Subscribe to:
Post Comments (Atom)
0 Response to Struggling with reshape
Post a Comment