The examples below use Stata 8. If you are using Stata version 9, please see this page.
This example is taken from Levy and Lemeshow’s Sampling of Populations.
page 106 repeated systematic sampling
input cluster xi wt1 xibar M 2 15 9 5 54 13 13 9 4.33 54 31 12 9 4.00 54 34 10 9 3.33 54 46 21 9 7 54 53 10 9 3.33 54 end svyset [pweight=wt1], fpc(M) svymean xibar Survey mean estimation pweight: wt1 Number of obs = 6 Strata: <one> Number of strata = 1 PSU: <observations> Number of PSUs = 6 FPC: M Population size = 54 ------------------------------------------------------------------------------ Mean | Estimate Std. Err. [95% Conf. Interval] Deff ---------+-------------------------------------------------------------------- xibar | 4.498333 .5310139 3.133318 5.863348 1 ------------------------------------------------------------------------------ Finite population correction (FPC) assumes simple random sampling without replacement of PSUs within each stratum with no subsampling within PSUs. Weights must represent population totals for deff to be correct when using an FPC. Note: deft is invariant to the scale of weights.
svytotal xi Survey total estimation pweight: wt1 Number of obs = 6 Strata: <one> Number of strata = 1 PSU: <observations> Number of PSUs = 6 FPC: M Population size = 54 ------------------------------------------------------------------------------ Total | Estimate Std. Err. [95% Conf. Interval] Deff ---------+-------------------------------------------------------------------- xi | 729 85.94882 508.0615 949.9385 1 ------------------------------------------------------------------------------ Finite population correction (FPC) assumes simple random sampling without replacement of PSUs within each stratum with no subsampling within PSUs. Weights must represent population totals for deff to be correct when using an FPC. Note: deft is invariant to the scale of weights.