fieldopt: Area-Frame and Dual-Frame Survey Design under Real Field Cost

Design of agricultural and other area-frame and dual-frame (area plus list) sample surveys that go to the field, with the real cost of field work (travel between sampling units plus interviews) next to the variance of the design-based estimator. Travel matrices from coordinates or a road network; GRASP routing of the field work for one or several teams, with call-backs to the units a visit could not complete; stratified spatially balanced (local pivotal) or spatially ordered systematic selection of segments with interpenetrating replicates; points inside segments with multiplicity (expected-hits) estimation; closed, open and weighted segment estimators; Horvitz-Thompson estimation with local-mean or replicate variances; cost-aware allocation across strata for one or several study variables, Hartley's dual-frame allocation with an overlap, and two-stage allocation with a cost function; and the cost-variance frontier of a design by simulation. The computational engine is the Rust crate 'fieldopt-core'. The methods follow Grafström, Lundström and Schelin (2012) <doi:10.1111/j.1541-0420.2011.01699.x> for the local pivotal method, Grafström and Schelin (2014) <doi:10.1111/sjos.12016> for the local-mean variance, Hartley (1962) for the dual-frame design, and Beardwood, Halton and Hammersley (1959) <doi:10.1017/S0305004100034095> for the square-root law of travel behind the cost curve.

Version: 0.2.0
Depends: R (≥ 4.2)
Imports: cli, generics, ggplot2, rlang, stats, tibble
Suggests: arrow, BalancedSampling, dplyr, highs, knitr, osrm, purrr, Matrix, rmarkdown, sf, survey, testthat (≥ 3.0.0), tidyr, vrpr
Published: 2026-11-30
DOI: 10.32614/CRAN.package.fieldopt
Author: André Leite ORCID iD [aut, cre], Raydonal Ospina ORCID iD [aut], Cristiano Ferraz ORCID iD [aut], The authors of the dependency Rust crates [ctb] (see inst/AUTHORS file for details)
fieldopt author details
Maintainer: André Leite <leite at castlab.org>
BugReports: https://github.com/castlaboratory/fieldopt/issues
License: GPL (≥ 3)
URL: https://castlaboratory.github.io/fieldopt/, https://github.com/castlaboratory/fieldopt
NeedsCompilation: yes
SystemRequirements: Cargo (Rust's package manager), rustc >= 1.70.0, xz
Language: en-GB
Materials: README, NEWS
CRAN checks: fieldopt results

Documentation:

Reference manual: fieldopt.html , fieldopt.pdf
Vignettes: Where fieldopt applies: beyond agricultural surveys (source)
An area frame with points, a list frame, and their joint design (source)
Get started with fieldopt (source)
Frames, strata and cost-aware allocation (source)
Routing for one or several teams (source)
From the frame to the field: a survey plan end to end (source)
Validation and benchmarks (source)

Downloads:

Package source: fieldopt_0.2.0.tar.gz
Windows binaries: r-devel: fieldopt_0.1.0.zip, r-release: fieldopt_0.1.0.zip, r-oldrel: fieldopt_0.1.0.zip
macOS binaries: r-release (arm64): fieldopt_0.2.0.tgz, r-oldrel (arm64): fieldopt_0.2.0.tgz, r-release (x86_64): fieldopt_0.2.0.tgz, r-oldrel (x86_64): fieldopt_0.2.0.tgz
Old sources: fieldopt archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=fieldopt to link to this page.