View source: R/SOptim_UnsupervisedClassification.R
numSampPerStrata | R Documentation |
Allows to calculate the number of samples per stratum with allocation proportional to size
numSampPerStrata(propStrata, n, minSamp = TRUE, minSizeSet = 10)
propStrata |
A |
n |
Total number of samples. |
minSamp |
Should a minimum sample size per stratum be enforced? (default: TRUE) |
minSizeSet |
Minimum sample size per stratum (default: 10). |
A table
object with the number of samples by stratum.
table
st <- sample(1:5,1000,replace=TRUE)
tb <- table(st)/length(st)
numSampPerStrata(propStrata=tb, n=100, minSamp = TRUE, minSizeSet = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.