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.
using graph hbar with Panel DataHey! I have Panel Data on Commodity (Variable) prices across 36 Cities (Variable) from Jan to April …
Stata output InterpretationKindly assist with the discussion and interpretation of Tables 2-4 and Figure 1 in the attached docu…
how to incorporate both fixed effects and robust std errors into panel analysisI am doing an event study where i use a panel analysis (different observations on a same day) with d…
Difference -in-difference research designHi all, I have a panel data (firm and year). I create Post indicator for states that adopt certain …
Keeping variables with different cases in each groupDear Statalist users, I would like to ask this data management questions. For example I have indivi…
Subscribe to:
Post Comments (Atom)
0 Response to Combine cases, but keep values from each.
Post a Comment