New here. Terrible at stats and made a terrible decision to take stats module and have never felt so stupid. I know R well but not for pure stats stuff like this and more for general data analysis.

I need to do an analysis in R for the above. Along with answering:

if had nobody quitted x, b) had all the individuals quitted x. What is the average causal effect of x on x change after 5 years?

Would really appreciate any help. Tried searching everywhere and can't understand any of the info online. The simpler someone can explain it to me, the better. Thank you in advance!