CancerRegistryOfNorway / nordcansurvival

Other
0 stars 0 forks source link

FYI: keep first ca per patient per entity #47

Closed BjarteAAGNES closed 1 year ago

BjarteAAGNES commented 2 years ago

https://github.com/CancerRegistryOfNorway/nordcansurvival/blob/master/inst/stata/ado/extract_define_survival_data.ado#L289

********************************************************************************
* keep first ca per patient per entity (group)
********************************************************************************
bysort pat entity ( date_of_incidence tum_sequence tum ) : keep if ( _n == 1 )
isid pat entity 
CotterpinDoozer commented 1 year ago

Issue: FYI: keep first ca per patient per entity Huidong comment: Bjarte will take this task.