Load and Process Arsenic Data
load_and_process_arsenic_data.Rd
Internal function to load USGS and EPA arsenic data, convert EPA lognormal to multinomial, and create weighted combined probability matrix.
Usage
load_and_process_arsenic_data(
as_usgs_prob_csv,
as_epa_prob_csv,
as_conc_cols,
pop_well_col,
epa_as_mean_col,
epa_as_sd_col,
epa_pwell_col,
geoid_col,
epa_cutoffs
)
Arguments
- as_usgs_prob_csv
Path to USGS probability CSV
- as_epa_prob_csv
Path to EPA probability CSV
- as_conc_cols
Column names for arsenic concentration probabilities
- pop_well_col
Column name for population weights
- epa_as_mean_col
Column name for EPA arsenic meanlog
- epa_as_sd_col
Column name for EPA arsenic sdlog
- epa_pwell_col
Column name for private well percentage
- geoid_col
Column name for geographic identifier
- epa_cutoffs
A numeric vector of cutoffs for categorizing arsenic levels based on EPA data