Dependent Samples - Quantum Column Proportions Test

Where and are the two proportions, and are the effective sample sizes, and are the weighted sample sizes, is Pearson's Product Moment Correlation for the overlapping sample and is the effective sample size that overlaps between the two samples, the test statistic is: