I am trying to understand the following formula for the standard error of the population mean as estimated through stratified sampling. On the CRAN site, the formula given is $$ S_{\bar{x}_{\textit{str}}} = \sqrt{ \sum_h \left(1 - \frac{n_h}{N_h}\right) \left( \frac{N_h}{N} \right)^2 \left( \frac{S_h^2}{n_h} \right) } $$ where
- $N$ is the total population size
- $N_h$ is the number of units (in the population) that belong to stratum $h$
- $n_h$ is the number of units sampled that belong to stratum $h$
- $S_h^2$ is the sample variance for the sampled units that belong to stratum $h$.
I am puzzled by the factor $\left(1 - \frac{n_h}{N_h}\right)\left(\frac{N_h}{N}\right)$ as I would have expected the formula to be the (square root of the) strata-weighted sum of (squared) standard standard errors: $$ S_{\bar{x}_{\textit{wrong}}} = \sqrt{ \sum_h \left( \frac{N_h}{N} \right) \left( \frac{S_h^2}{n_h} \right). } $$
How does $\left(1 - \frac{n_h}{N_h}\right)\left(\frac{N_h}{N}\right)$ enter the picture?