global cancer_mostdep_stand sex_cvd 0 sex_other 0 sex_cancer = sex ///
>   mostdep_cancer 1  mostdep_cvd 0 mostdep_other 0 ///
>   rcsage1_cancer = rcsage1 rcsage2_cancer = rcsage2 rcsage3_cancer = rcsage3 /// 
>   rcsage1_other 0 rcsage2_other 0 rcsage3_other 0 ///
>   rcsage1_cvd 0 rcsage2_cvd 0 rcsage3_cvd 0 ///
>   _cancer 1 _cvd 0 _other 1 
{\smallskip}
 global cancer_leastdep_stand sex_cvd 0 sex_other 0 sex_cancer = sex ///
>   mostdep_cancer 0  mostdep_cvd 0 mostdep_other 0 ///
>   rcsage1_cancer = rcsage1 rcsage2_cancer = rcsage2 rcsage3_cancer = rcsage3 /// 
>   rcsage1_other 0 rcsage2_other 0 rcsage3_other 0 ///
>   rcsage1_cvd 0 rcsage2_cvd 0 rcsage3_cvd 0 ///
>   _cancer 1 _cvd 0 _other 1  
{\smallskip}
 bysort failcode id (_t): gen first = _n==1