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.
Running a function for a subset of observationsHello colleagues, I have a long shaped dataset of 200 countries. I would like to run functions, for…
interpretation of coefficient of independent variable which is measured as a % of GDPI am doing a ols regression analysis using Gini index as the dependent variable and remittance measu…
Escape character in shell commandI have a long command in a shell escape that includes semicolons. If use -#delimit ;- to allow for a…
Problem with graph export using globalsHi, I am using globals to store my file paths - all the globals are stored in a master dofile that …
Difference-in-difference regression interpretationGood afternoon, I know there have been previous posts regarding this topic, however I first wanted …
Subscribe to:
Post Comments (Atom)
0 Response to Combine cases, but keep values from each.
Post a Comment