Description Author(s) See Also Examples
The saAlloc object contains a set of results obtained by forming optimal strata and allocations for fixed CV constraints.
Jonathan Lisic
saMinCV
saEqualClus
saSampleAlloc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # data set with 100 observations and four
# characteristics split between two strata
x <- matrix(rnorm( 100*4 ),ncol=4)
# create an initial set of strata assignments
label <- c(rep(0,50),rep(1,50))
# run minCV for a sample size of 20
b <- saMinCV(
x,
label,
targetCV=c(0.08, 0.10, 0.05, 0.08),
sampleSize=20
)
# both of these functions return the same
# plot
# plot through s3 object
plot(b)
# plot explicitly
summary(b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.