I\'m currently working on a project combining machine learning and causal inference in R using caret. My dataset contains a variable that assigns the observations into certain g