Hello I have two data sets, they both have the common variable person_ID. One dataset consists of the date on which people where arrested before a treatment effect, the second data set consists of the dates people where arrest after a treatment effect was given. I want to merge these data sets. The problem I run into is the way the variable person_ID was coded.For example there is a person in this data set that was arrested at three distinct dates, he is given the ID 1, so this person appears as 1 three times in the data set. In the second dataset this individual was arrested twice so in the merged data set 1 should appear 5 times. When I try the command merge is fails to merge in any of the possible combinations. If this was unclear please tell me and I will clarify.
Related Posts with Proper way to merge data
Combine 2 Kaplan-Meier plots, not as 2 panels but in the same plotDear Statlist, I am trying to make a Kaplan Meier Plot showing survival up to 100 days for all pati…
Regression Analysis with year dummyHello. I am very new to the Stata and I would like to ask a very simple question. I have 30 years(fr…
Falsification test for DIDDear friends, I have a concern regarding my diff-in-diff regressions on Stata. I am working on a dif…
Relative change score as dependent*variable in Diff-in-DiffDear researchers, This is not a question regading Stata, but rather a more general one. I have seen…
Any quick way to handle incorrect statistics for variables in panel data that do not change over timeAs shown in the panel data chart, there should be some errors for variables that do not change over …
Subscribe to:
Post Comments (Atom)
0 Response to Proper way to merge data
Post a Comment