Expected attenuation of the anchored imbalance by switch errors
Source:R/allelic.R
switch_attenuation.RdWithin a block of k SNPs with per-SNP switch probability p the fraction of SNPs in the flipped parity state is q = (1/k) sum_j (1 - (1 - 2p)^j) / 2, and the anchored deviation |f - 0.5| is multiplied by (1 - 2q).