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
Melogit: variance of random slope looks insignficant, but LRtest says it is?Can someone please help me with a multilevel modeling question? I've gotten conflicting advice from …
Creating daily average and hourly levels from hourly dataHi everyone! I'm new to Stata and I would like to have some of your advice! I have gathered hourly…
Generate a row rather than ColumnHello Everyone, May I ask if anyone has an idea if we can generate a row of data in stata? If I hav…
How much computer specs do I have to analyze large data for fixed effectHi I have very large daily data. The number of rows is 1 million and the number of columns is 50. Ho…
hierarchical random effect meta-analysisHi everyone, I am doing a meta-analysis and I want to use hierarchical random effect meta-analysis.…
Subscribe to:
Post Comments (Atom)
0 Response to Struggling with reshape
Post a Comment