I'd like to combine cases, but in an unusual way -- by keeping values from each.
For example, start with:
id1 id2 date amount
80072 1 7/10/2015 4500
80072 1R 2/24/2013 3600
And end up with:
id1 id2 date amount
80072 2/24/2013 4500
I care less about where I end up with the id1/id2 numbers (they'll eventually be eliminated once I get all interrelated cases down to a single row). But I need to keep the date from one case and the amount from the other, and end up with one row. Help, please? Thanks!
Related Posts with Combine cases, but keep values from each.
Problem with storing regression estimates while using "scfcombo" package for Survey of Consumer Finance dataAll, I am trying to neatly store and organize regression results in Stata 16.0 version. However, I …
RecodingHello, I have the variable gender which was originally coded as 1 = male and 2 = female. I went in …
Is there any way to stop pyStata while running?We know that both python and Stata have the stop-process capability, but it seems impossible to do t…
Find matched firmsHello everyone, Hope everything is going well. I have a question about how to identify the matched…
Backward Compatibility .mlib-s Complied in v17Hi All, Yesterday a user made an issue on the -domin- (SSC) package's GitHub page noting that they …
Subscribe to:
Post Comments (Atom)
0 Response to Combine cases, but keep values from each.
Post a Comment