I was using a skeleton code I was given and need some help changing it to fit my dataset variables. The code doesn't run, please could someone help identify the problem
stset person_years, failure(Comp_outcome) id(practice_patient_id)
stcox exposed ETHNICITY_NEW e2019_imd_5 BMI_category SMOKINGSTATUS_CATEGORY N_statin N_insulin N_hypertensive N_othermedication if BMI35==1
stcox exposed ETHNICITY_NEW e2019_imd_5 BMI_category SMOKINGSTATUS_CATEGORY N_statin N_insulin N_hypertensive N_othermedication if BMI35==2
testparm BMI35*
stset person_years, failure(Comp_outcome) id(practice_patient_id)
stcox exposed ETHNICITY_NEW e2019_imd_5 BMI_category SMOKINGSTATUS_CATEGORY N_statin N_insulin N_hypertensive N_othermedication if BMI35==1
stcox exposed ETHNICITY_NEW e2019_imd_5 BMI_category SMOKINGSTATUS_CATEGORY N_statin N_insulin N_hypertensive N_othermedication if BMI35==2
testparm BMI35*
Comment