Generates synthetic monitoring observations for AMS-III.A projects that replace synthetic nitrogen fertilizer with inoculants.

simulate_ams_iiia_dataset(n_farms = 10, n_periods = 3, start_year = 2024,
  seed = NULL, baseline_n_mean = 90, replacement_fraction = 0.7,
  legume_area_mean = 22, inoculant_rate_mean = 0.45,
  fertilizer_production_ef = 0.004, fertilizer_field_ef = 0.01,
  inoculant_ef = 0.002)

Arguments

n_farms

Number of farms to simulate.

n_periods

Number of monitoring periods per farm.

start_year

Calendar year of the first monitoring period.

seed

Optional seed for reproducibility.

baseline_n_mean

Mean baseline synthetic nitrogen use per period (kg N).

replacement_fraction

Expected fractional reduction in fertilizer use due to inoculants.

legume_area_mean

Mean legume area planted per farm (ha).

inoculant_rate_mean

Mean inoculant application rate (kg/ha).

fertilizer_production_ef

Emission factor for fertilizer production (tCO2e per kg N).

fertilizer_field_ef

Direct soil emission factor (tCO2e per kg N).

inoculant_ef

Emission factor for inoculant production and application (tCO2e per kg).

Value

Tibble containing simulated baseline, project, inoculant, and leakage data with monitoring metadata.

Examples

simulate_ams_iiia_dataset(n_farms = 3, n_periods = 2, seed = 42)
#> # A tibble: 6 × 16
#>   farm_id monitoring_period  year season baseline_synthetic_n_kg
#>   <chr>               <int> <dbl> <chr>                    <dbl>
#> 1 farm_01                 1  2024 wet                      115. 
#> 2 farm_01                 2  2024 dry                       79.8
#> 3 farm_02                 1  2024 wet                       96.5
#> 4 farm_02                 2  2024 dry                      101. 
#> 5 farm_03                 1  2024 wet                       97.3
#> 6 farm_03                 2  2024 dry                       88.1
#> # ℹ 11 more variables: baseline_production_ef_tco2_per_kg <dbl>,
#> #   baseline_field_ef_tco2_per_kg <dbl>, project_synthetic_n_kg <dbl>,
#> #   project_production_ef_tco2_per_kg <dbl>,
#> #   project_field_ef_tco2_per_kg <dbl>, inoculant_rate_kg_per_ha <dbl>,
#> #   legume_area_ha <dbl>, total_area_ha <dbl>, inoculant_ef_tco2_per_kg <dbl>,
#> #   inoculant_registered <lgl>, leakage_emissions_tco2e <dbl>