I have two countries A and B. I have yearly data for last 5 years w.r.t. variable x1, x2, x3,.., xn and y. I want to find out if the difference in trend of y for country A w.r.t. country B is predicted by the differences in trends of x1, x2, x3,..., xn between the two countries. What type of statistical analysis can be used?
e.g. outcome variable is proportion
YA: 10% (2009), 12% (2010), 15% (2011), 11% (2012), 19% (2013)
YB: 12% (2009), 15% (2010), 8% (2011), 2% (2012), 0% (2013)
Predictors:
X1A: 7% (2009), 9% (2010), 10% (2011), 12% (2012), 7% (2013)
X1B: 10% (2009), 8% (2010), 5% (2011), 7% (2012), 2% (2013)
X2A: 10 (2009), 9 (2010), 15 (2011), 11 (2012), 4 (2013)
X3A: 7 (2009), 12 (2010), 8 (2011), 3 (2012), 2 (2013)
I want to find out whether the difference in trend between YA and YB is due to the difference in trend between x1A & x1B and x2A & x2B.
I need to know the statistical analysis required, whether that can be done in R or STATA and if yes, step by step approach to perform the analysis.
Thank you