NOTE: If you want to see the design effect or the misspecification effect, use estat effects after the command.
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) pweight: wt1 VCE: linearized Strata 1: <one> SU 1: <observations> FPC 1: M svy: mean xibar (running mean on estimation sample) Survey: Mean estimation Number of strata = 1 Number of obs = 6 Number of PSUs = 6 Population size = 54 Design df = 5 -------------------------------------------------------------- | Linearized | Mean Std. Err. [95% Conf. Interval] -------------+------------------------------------------------ xibar | 4.498333 .5310139 3.133318 5.863348 --------------------------------------------------------------
svy: total xi (running total on estimation sample) Survey: Total estimation Number of strata = 1 Number of obs = 6 Number of PSUs = 6 Population size = 54 Design df = 5 -------------------------------------------------------------- | Linearized | Total Std. Err. [95% Conf. Interval] -------------+------------------------------------------------ xi | 729 85.94882 508.0615 949.9385 --------------------------------------------------------------