size2.samevar:
Calculates negative binomial size to preserve constant variance.
Description
Calculates the Negative Binomial size parameter s2 such that the variance of the distribution
with mean mu2 and size s2 is the same as the Negative Binomial distribution with mean
mu1 and size s1. This can be useful when computing power for a Negative Binomial
distribution in the packages power.groups and power.BACI.