inclusionprobastrata | R Documentation |
Computes the inclusion probabilities for a stratified design. The inclusion probabilities are equal in each stratum.
inclusionprobastrata(strata,nh)
strata |
vector that defines the strata. |
nh |
vector of the number of selected units in each stratum. |
balancedstratification
# the strata
strata=c(1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3)
# sample size in each stratum
nh=c(2,3,3)
# inclusion probabilities for each stratum
pik=inclusionprobastrata(strata,nh)
#check for each stratum
cbind(strata, pik)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.