# Comparing the change in proportions across two time periods for two groups

I am running a test across two groups over a period of time and want to understand if the Change in proportions for my test group is significantly different to the change in proportions in the control group.

Most of what I have found compares one proportion to another either over group or over time but not both.

If I have: my Test group with proportions P1 and P2 with sample N1 and N2 (in periods T1 and T2) my control group with proportions Q1 and Q2 with sample M1 and N2 (in periods T1 and T2)

I want to know if P2-P1 is statistically significantly different to Q2-Q1

P1,P2,Q1, Q2 are all percentages.

Any help would be most appreciated!

So then you calculate the variance of z=(P2-P1) - (Q2-Q1). Assuming the proportions are independent, the variances add up, ie $$var(z) =var(P2) +var(P1) +var(Q2) +var(Q1)$$ So then you perform a z test on the variable z, (with assumed mean under the null hypothesis of zero).