Hi there,
I'm working on data from 2012-2018 concerning HIV-positive pregnant women in treatment and loss to follow-up. For those who have been in treatment more than once in relation to having more children, their ID occurs two, three or four times. The information attached to the duplicate ID's are, among other, start and end date (some end dates are missing) of treatment. I need to maintain the "latest" IDs and date variables for those that occur more than once in order to trace their lastes contact (among those where end date is missing) with the clinic and register whether or not they are LTFU. Each woman is only supposed to occur once during the study period. If I make a simple "duplicates drop idp, force" I will have to use the start date of their first treatment and their latest contact with the clinic from later visits to calculates their follow-up time which then will be too long.
Any thoughts? (I'm using Stata 14 on a Mac)
Thank you!
Best regards, Laura
Array
Related Posts with How to choose which duplicates to drop/keep?
Why are Frames UsefulPerhaps this is a question for another forum, but I had a more general question about dataframes. I…
Panel data estimatioinHello. Need help with panel data estimation. I am working on panel data with T=96 and N=260. I used …
converting dates (year and month)Dear All, Is there a more concise way to go from date to newdate below? Thanks. Code: * Example gen…
alternative to keep if for a large list of firm id sHi all, I have a list of firm ids that contains 17,000 firm ids. I have a big dataset which contain…
Number of splitvoters from two variablesI need to know the number of split voters in Denmark - those who did not vote for the same party at …
Subscribe to:
Post Comments (Atom)
0 Response to How to choose which duplicates to drop/keep?
Post a Comment