Skip to contents

Function for rounding strata sample sizes to ensure the total sample size remains the same

Usage

SpecialRound(x)

Arguments

x

vector of unrounded strata sample sizes

Value

vector with round strata sizes where the total sample size is held constant.

Examples

{
 
jj <- c(4.2, 4.2, 4.2, 4.3, 4.3, 4.4, 4.4)
SpecialRound(jj)
}
#> [1] 4 4 4 4 4 5 5