Instead of specifying the total sample size to allocate among the strata, you can specify the margin of error for the estimate of the overall mean from the stratified sample. Based on the requested allocation method and the stratum variances that you provide, PROC SURVEYSELECT computes the stratum sample sizes that are required to achieve this margin of error. You specify the margin of error in the MARGIN= option in the STRATA statement, and you provide stratum variances in the VAR= option. You can use the MARGIN= option with any allocation method (proportional, optimal, or Neyman) or with allocation proportions that you provide (ALLOC=(values) or ALLOC=SAS-data-set ).
The margin of error e is the half-width of the % confidence interval for the overall mean based on the stratified sample,
where is the variance of the estimate of the mean from the stratified sample and is the th percentile of the standard normal distribution. You can specify the value of in the ALPHA= option in the STRATA statement. By default, PROC SURVEYSELECT uses a 95% confidence interval (ALPHA=0.05).
For the specified margin of error e, PROC SURVEYSELECT computes the target stratum sample sizes for without-replacement selection methods as
where is the number of sampling units in stratum i, is the variance within stratum i, N is the total number of sampling units for all strata, and H is the total number of strata.
The values of are the stratum allocation proportions, which PROC SURVEYSELECT computes according to the allocation method that you request. For more information, see the sections Proportional Allocation, Optimal Allocation, and Neyman Allocation.
For with-replacement selection methods, PROC SURVEYSELECT computes the target stratum sample sizes as
For more information, see Lohr (2010, p. 91), Cochran (1977, Chapter 5), and Arkin (1984, Chapter 10).
The target sample size values might not be integers, but the stratum sample sizes are required to be integers. PROC SURVEYSELECT rounds all fractional target sample sizes up to integer sample sizes. If you specify a minimum stratum sample size in the ALLOCMIN= option in the STRATA statement, then all stratum sample sizes are required to be at least .
For without-replacement selection methods, a stratum sample size cannot exceed the number of units in the stratum. If a target stratum sample size does exceed the number of units in the stratum, the procedure sets for that stratum, removes the stratum from the variance computation (because it contributes nothing to the sampling error), revises the allocation proportions for the remaining strata, and computes the stratum sample sizes again. If a stratum sample size equals the number of units in its stratum, the procedure also removes that stratum from the variance computation and revises the sample sizes for the remaining strata. For more information, see Cochran (1977, p. 104) and Arkin (1984, p. 176).
When you specify the STATS option with the MARGIN= option in the STRATA statement, PROC SURVEYSELECT displays the expected margin of error for the sample allocation. The expected margin of error (for the overall mean based on the stratified sample) is computed from the stratum sizes (), the stratum variances that you provide (), and the allocated stratum sample sizes that the procedure computes (). For without-replacement selection methods, the expected margin of error is
For with-replacement selection methods, the expected margin of error is
The expected margin of error should be less than or equal to the value specified in the MARGIN= option. Any difference between the expected margin and the specified value is due to rounding the target stratum sample sizes up to integer values and increasing stratum sample sizes to equal the required minimum value (ALLOCMIN= ).