Hi everyone,

I'm trying to check whether my missing values are missing at random. I have 24 variables so I'd like to create a loop to do this but I'm a bit stuck. Would anyone be able to help me, please?

My variables are: mat_ment_health A6_DASS_anx ethnicity SRI folate SGA diet BMI ax drug psy A6_DASS_stress Pregnancy_planning preeclampsia preterm pren_smoking antidep_combined A6_fad_gf_new A6_DASS_depr parity child_sex breastfeed parenting smoking_envir_A6

My independent variable is: traj_alcohol (it has 6 groups)

Any help would be appreciated!

Thank you
Garance