Skip to contents

Minimum cost sum c_h n_h such that the variance of the estimated total of every study variable is at most its target (Bethel 1989; Chromy 1987). This is frame_allocation() with one constraint per variable: a survey that must estimate several crops, or a crop and the number of farms, with stated precisions. The multipliers tell which constraints bind.

Usage

multivariate_allocation(
  strata,
  sd,
  target_variance = NULL,
  target_cv = NULL,
  totals = NULL,
  domain = NULL,
  domain_cv = NULL,
  domain_variance = NULL,
  mean = NULL
)

Arguments

strata

Data frame with columns size, cost, optionally stratum, and one standard-deviation column per study variable.

sd

Names of the standard-deviation columns, one per variable.

target_variance

Target variance of each variable's total, in the order of sd (give this or target_cv; neither is needed when domain targets are given).

target_cv

Target coefficient of variation of each total; needs totals (or mean).

totals

Population totals of the variables, for target_cv.

domain

Optional column of strata with the domain of each stratum (strata are nested in domains).

domain_cv

Target coefficient of variation of each variable's total within every domain: one number for all variables or one per variable; needs mean.

domain_variance

Target variance of each variable's total within every domain, instead of domain_cv: one number or one per variable.

mean

Names of the columns with the stratum means of the variables, in the order of sd: the total of a domain is sum(size * mean) over its strata.

Value

The strata with a column n, of class fieldopt_multi_allocation, with attributes cost, targets, attained (variance of each variable), multipliers, bounded. With domains, the targets of the domains are named variable[domain] and the attribute constraints is a tibble with one row per target (variable, domain, target, attained, cv, multiplier).

Details

Precision is often required for parts of the population as well as for the whole (each region and the country). With domain naming the domain of every stratum, domain_cv (or domain_variance) sets a target for the total of each variable in every domain: one more constraint per variable and domain, on the strata of that domain alone. The targets for the whole population are then optional. The domain totals that the coefficients of variation refer to come from the stratum means in mean.

References

Bethel, J. (1989). Sample allocation in multivariate surveys. Survey Methodology, 15, 47-57. Chromy, J. R. (1987). Design optimization with multiple objectives. Proceedings of the Survey Research Methods Section, ASA, 194-199.

Examples

strata <- data.frame(
  stratum = c("high", "mid", "low"), size = c(300, 800, 2000),
  cost = c(250, 180, 150), sd_corn = c(40, 25, 8), sd_cattle = c(15, 30, 12)
)
multivariate_allocation(strata,
  sd = c("sd_corn", "sd_cattle"),
  target_cv = c(0.05, 0.08), totals = c(90000, 60000)
)
#> 
#> ── Multivariate allocation ─────────────────────────────────────────────────────
#> Minimum cost 21150 for 2 targets.
#> sd_corn: target 20250000, attained 19910000 (binding).
#> sd_cattle: target 23040000, attained 22860000 (binding).
#> # A tibble: 3 × 4
#>   stratum  size  cost     n
#>   <chr>   <dbl> <dbl> <int>
#> 1 high      300   250    18
#> 2 mid       800   180    50
#> 3 low      2000   150    51
# a target for the whole and one for every region
regions <- data.frame(
  stratum = c("n-high", "n-low", "s-high", "s-low"),
  region = c("north", "north", "south", "south"),
  size = c(200, 900, 400, 1500), cost = c(260, 170, 220, 140),
  sd_corn = c(40, 9, 30, 6), mean_corn = c(90, 12, 70, 10)
)
multivariate_allocation(regions,
  sd = "sd_corn", mean = "mean_corn",
  target_cv = 0.03, domain = "region", domain_cv = 0.04
)
#> 
#> ── Multivariate allocation ─────────────────────────────────────────────────────
#> Minimum cost 56410 for 3 targets.
#> sd_corn: target 4640000, attained 4239000.
#> sd_corn[north]: target 1327000, attained 1320000 (binding).
#> sd_corn[south]: target 2958000, attained 2919000 (binding).
#> # A tibble: 4 × 4
#>   stratum  size  cost     n
#>   <chr>   <dbl> <dbl> <int>
#> 1 n-high    200   260    68
#> 2 n-low     900   170    85
#> 3 s-high    400   220    69
#> 4 s-low    1500   140    65