Description Usage Arguments Value
Ratio estimator is computed for each strata and then a separate version of
the ratio estimator is computed where the estimates of the strata are
weighted according to the area of each stratum (unlike traditional estimator
that weights with number of polygons sampled).
strata_ratio_est
returns the estimates for each strata in the sample
(assuming SRS within strata).
1 | separate_ratio_est(data, estratos_area, stratum, y, M, N)
|
data |
|
stratum |
unquoted column with strata in the data and allocation
|
allocation |
|
y: |
unquoted variable in data corresponding to numerator in ratio (eg. binary vector 1 correctly classified 0 ow) #' @param M: unquoted variable in data corresponding to denominator in ratio (eg. polygon areas) |
N: |
number of polygons in the strata. |
A list
with estimates per strata and the separate ratio
estimate for overall population.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.