Below is the code that was implemented into STATA17 that cleaned variables and processed the analysis of the data.