fieldopt-core
Field-survey design under real field cost, in pure Rust with no dependencies:
- Travel matrices from coordinates (great-circle or Euclidean), or supplied by the user from a road network (for example OSRM).
- Routing of field work with GRASP (randomised greedy construction, 2-opt and Or-opt local search) for one tour or several routes under a maximum length and number of stops (optimal split of the giant tour, Prins 2004), with a lower bound and the gap to it.
- Spatially balanced sampling with the local pivotal method (Grafström, Lundström and Schelin 2012) and size-proportional inclusion probabilities.
- Design-based estimation: Horvitz-Thompson total with the local-mean variance estimator (Grafström and Schelin 2014) and the simple-random-sampling variance as a reference.
- Cost-aware allocation across strata or frames: minimum cost for a target variance, or minimum variance for a budget (Cochran 1977).
Every randomised step is reproducible from a seed. The crate is the engine of the R package fieldopt (CAST Lab, Universidade Federal de Pernambuco) and can be used on its own.
[]
= "0.1"
See the crate documentation for an end-to-end example (select segments, route the field work, estimate).
Version 0.2 adds the pieces an area-frame or dual-frame survey needs:
spatial: order of units along a Hilbert curve and systematic PPS sampling along it, as independent interpenetrating replicates for design-based variance estimation.dualframe: Hartley's dual-frame allocation (area + list with overlap): cost-optimal sample sizes in each frame and the optimal mixing weighttheta, or the screening design (theta = 0), for a target variance or a budget, with design effects.twostage: Cochran's two-stage allocation with the cost functionc1 n + c2 n m: optimal secondary units per primary unit and the number of primary units for a target variance or a budget.
License
GPL-3.0-or-later. © CAST Lab, Universidade Federal de Pernambuco.