Quick point-estimate only (no CI, no bootstrapping).
Usage
ssd_pct(
analyte,
conc,
conc_units = NULL,
method = "multi",
hardness = NULL,
hardness_units = NULL,
guideline_dir = getOption("hydroSense.guideline_dir")
)Arguments
- analyte
Character. Analyte name (key in .SSD_NAME_MAP). Supply "NO3-N" together with
hardnessfor automatic class selection, or supply the explicit class name ("NO3-N_soft" etc.).- conc
Numeric or
unitsobject. Concentration to evaluate. Bare numeric requiresconc_units.- conc_units
Character. Unit of
concwhen it is bare numeric, e.g."ug/L"or"mg/L". Ignored whenconcis aunitsobject.- method
Character. "multi" (default) fits all 6 BCANZ distributions and model-averages; "anzecc" uses the per-analyte distribution that best matches the original ANZG derivation.
- hardness
Numeric or
unitsobject, orNULL. Required for the NO3-N analyte. Hardness at the time of measurement. Bare numeric requireshardness_units.- hardness_units
Character. Unit of
hardnesswhen it is bare numeric, e.g."mg/L". Ignored whenhardnessis aunitsobject orNULL.- guideline_dir
Character. Path to the "guideline data" folder containing ANZG XLSX files. Falls back to getOption("hydroSense.guideline_dir").