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
Loops graphs by group error in savingDear all, I am trying to generate graphs using loops and levelsof by regions and would like to save…
Creating a categorical variable from multiple variablesI am working with county-level panel data. I am currently trying to create covariates for my regress…
do you use sort id before merge?I ask this question because I find everytime when I merge 2 data sets, I don't need to -sort id- at …
How can i split a variable?Hello everybody I have a problem I am looking for how to solve it. In my database I have a variable…
how to evaluate goodness of fit of GSEM?Hello everyone, I am new to SEM. My model has a count mediator and a continuous outcome, so I am us…
Subscribe to:
Post Comments (Atom)
0 Response to Struggling with reshape
Post a Comment