Open BoPeng opened 1 month ago
if (agebc.eq. 999) then
if(agelfu.gt.0 .and. agedeath.gt.0) then
agebc=min(agelfu,agedeath)
elseif(agelfu.gt.0 .and. agedeath.eq.0) then
agebc=agelfu
elseif(agelfu.eq.0 .and. agedeath.gt.0) then
agebc=agedeath
else
agebc=0
endif
endif
Basically, 999
age of diagnosis values are imputed by age of death
, age of last follow up
, or set to 0
if both are missing.
agedeath
is obtained from age at death
agelfu =
Age= 2023 -
Year_Birth`agedeath
, then agelfu
, then 0Colorectal_age_dx
is NA
or 0 or 888, and there is no agelfu, and no agedeath), then treat as NO CANCER.
Code is 999.