A synthetic agricultural survey frame inspired by Living Standards Measurement Study - Integrated Surveys on Agriculture (LSMS-ISA). Uses real Uganda administrative divisions but contains entirely fictional data.
uganda_farmsA tibble with approximately 800 rows and 7 columns:
Character. Unique enumeration area identifier
Factor. Region (Central, Eastern, Northern, Western)
Factor. District name
Factor. Urban/Rural classification
Integer. Number of households in the EA
Numeric. Average farm size in hectares
Factor. Predominant crop in the EA
This dataset is designed for demonstrating:
Agricultural survey sampling
Stratification by region and urban/rural
Domain estimation (by crop type)
Multi-stage sampling for household agricultural surveys
Main crops vary by region reflecting actual Ugandan agriculture: Central (coffee, maize, beans, banana), Eastern (maize, millet, rice, cotton), Northern (millet, sorghum, groundnuts, sesame), Western (coffee, banana, tea, maize).
This is a synthetic dataset. Administrative divisions are real but all data values are fictional.
data(uganda_farms)
head(uganda_farms)
#> # A tibble: 6 × 7
#> ea_id region district urban_rural n_households avg_farm_size_ha main_crop
#> <chr> <fct> <fct> <fct> <dbl> <dbl> <fct>
#> 1 UG_Cen_Ka… Centr… Kampala Rural 86 5.05 beans
#> 2 UG_Cen_Ka… Centr… Kampala Urban 94 0.43 beans
#> 3 UG_Cen_Ka… Centr… Kampala Urban 62 0.49 banana
#> 4 UG_Cen_Ka… Centr… Kampala Rural 40 4 banana
#> 5 UG_Cen_Ka… Centr… Kampala Urban 44 0.35 beans
#> 6 UG_Cen_Ka… Centr… Kampala Rural 72 0.83 maize
table(uganda_farms$region, uganda_farms$main_crop)
#>
#> banana beans coffee cotton groundnuts maize millet rice sesame
#> Central 54 43 71 0 0 43 0 0 0
#> Eastern 0 0 0 45 0 48 71 47 0
#> Northern 0 0 0 0 38 0 41 0 35
#> Western 53 0 49 0 0 57 0 0 0
#>
#> sorghum tea
#> Central 0 0
#> Eastern 0 0
#> Northern 36 0
#> Western 0 64
# Stratified sample by region
if (FALSE) { # \dontrun{
sampling_design() |>
stratify_by(region, alloc = "proportional") |>
cluster_by(ea_id) |>
draw(n = 30) |>
execute(uganda_farms, seed = 42)
} # }