strata.estimator {samplingR} | R Documentation |
Parameter estimation of stratified data
Description
Function to make estimations of diferent parameters based on a stratified sample.
Usage
strata.estimator(
N,
Nh,
data,
estimator = c("total", "mean", "proportion", "class total"),
replace = FALSE,
alpha
)
Arguments
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 |
Details
Nh length must be equal to number of strata in data.
data is meant to be a returned object of strata.sample
function.
Value
A list containing different interest values:
estimator
variance
sampling.error
estimation.error
confint
[Package samplingR version 1.0.1 Index]