Description Usage Arguments Value Details See Also Examples
The function computes optimal sample size allocation over strata.
1 2 3 4 5 6 7 8 9 10 |
H |
The stratum variable. One dimensional object convertible to one-column |
n |
Total sample size. One dimensional object with length one. |
poph |
Population size in each stratum. One dimensional object convertible to one-column |
s2h |
The expected population variance S^2 for variables of interest in each stratum (optional). If not defined, it is assumed to be 1 in each stratum. Object convertible to |
Rh |
The expected response rate in each stratum (optional). If not defined, it is assumed to be 1 in each stratum (full-response). Object convertible to one-column |
deffh |
The expected design effect for the estimate of variable (optional). If not defined, it is assumed to be 1 for each variable in each stratum. If is defined, then variables is defined the same arrangement as |
fullsampleh |
Variable for detection fully surveyed stratum (optinal). If not defined, it is assumed to be 1 in each stratum (full-response). Object convertible to one-column |
dataset |
Optional survey data object convertible to |
An object as data.table
, with variables:
H
- stratum,
variable
- the name of variable for population variance S^2,
s2h
- population variance S^2,
Rh
- the expectedresponse rate,
deffh
- the expected design effect,
poph
- population size,
deffh
- design effect,
fullsampleh
- full sample indicator,
nh
- sample size.
If s2h
and Rh
is not defined, the sample allocation will be calculated as proportional allocation (proportional to the population size).
If Rh
is not defined, the sample allocation will be calculated as Neyman allocation.
expsize
, dom_optimal_allocation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.