I have a dataset where patientes have specific ID-numbers. They also have one specific ID for every time they have been admitted to the hospital, which means that there are several of the same ID's but with different dates. I only need the first admission, so i need to figure out how i drop all variables with the same ID except the ID-number with the first admission. I hope that makes sense and that you can help. Thank you.
Example:
ID: 0000012354 Admissiondate: 04 mar 13
ID: 0000012354 Admissiondate: 07 jun 14
ID: 0000012354 Admissiondate: 12 jan 16
All the best
Jonas
Related Posts with How do i drop earliest date for specific ID variables
Monthly rolling regressions - recording residualsHi All, Thanks for reading. I currently have daily time series data for the periods from July 2010…
Comparing mortality rate over yearsDear Statlisters, I am trying to find : whether there is a "significant change in the mortality rate…
Conditional logistic regressionHi! I am new to this forum and looking for some advice please. I have run a conditional logistic reg…
psmatch2 and pstestHallo, I have a question regard "psmatch2" and "pstest". I use the same propensity score, but i am …
Represent Table to Line graphGreetings. I would want to transform my tabulation: ta bdcategory year to be represented in a line g…
Subscribe to:
Post Comments (Atom)
0 Response to How do i drop earliest date for specific ID variables
Post a Comment