Function to make estimations of diferent parameters based on a stratified sample.
strata.estimator(
N,
Nh,
data,
estimator = c("total", "mean", "proportion", "class total"),
replace = FALSE,
alpha
)A list containing different interest values:
estimator
variance
sampling.error
estimation.error
confint
Population size.
Size of each population strata.
Stratified sample.
Estimator to compute. Can be one of "total", "mean", "proportion", "class total". Default is "total".
Whether the sample to be taken can have repeated instances or not.
Optional value to calculate estimation error and build 1-alpha
Nh length must be equal to number of strata in data.
data is meant to be a returned object of strata.sample function.