The comparison for the vocabulary size is carried out with the test statistic $$Z = \frac{E[V_1] - E[V_2]}{\sqrt{\sigma(V_1)^2 + \sigma(V_2)^2}}$$
and the comparison of the growth rates with the test statistic
$$Z = \frac{\frac{1}{N_1}E[V_1(1)] - \frac{1}{N_2}E[V_2]}{\sqrt{\frac{1}{N_1^2}\sigma(V_1(1))^2 + \frac{1}{N_2^2}\sigma(V_2(1))^2}}$$
where $N$ denotes the sample size in tokens, $V$ the vocabulary size,
and $V(1)$ the number of hapax legomena.