View source: R/strata.estimator.R
strata.estimator | R Documentation |
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
)
N |
Population size. |
Nh |
Size of each population strata. |
data |
Stratified sample. |
estimator |
Estimator to compute. Can be one of "total", "mean", "proportion", "class total". Default is "total". |
replace |
Whether the sample to be taken can have repeated instances or not. |
alpha |
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.
A list containing different interest values:
estimator
variance
sampling.error
estimation.error
confint
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.