| Aggregate Posterior Profile Draws into R_ALL / R_KNOWN_OUTCOME / R_NF Summaries | aggregate_profiles_for_daly |
| Create AMR Preprocessing Configuration | amr_config |
| Assess Numerical Stability of Correlated Profile Completion | assess_gibbs_profile_stability |
| Bootstrap Uncertainty Intervals for Resistance Profile Probabilities | bootstrap_profiles_convex |
| Build QP Constraint Matrix and Target Vector | build_constraint_matrix |
| Formally Check Resistance Profile Probability Constraints | check_profile_constraints |
| Human-readable antimicrobial class label | class_display_label |
| Human-readable class-pair label | class_pair_label |
| Short antimicrobial class label (for dense facet strips) | class_short_label |
| Compare Distribution Fits by AIC | compare_distribution_aic |
| Compute Observed-Plus-Imputed Resistance Profile Probabilities | compute_event_profile_probabilities |
| Compute Hospital-Level DALY Breakdown | compute_hospital_daly |
| Compute Marginal Resistance per Pathogen and Antibiotic Class | compute_marginal_resistance |
| Compute Marginal Resistance Rates from Preprocessed Wide Data | compute_marginals_from_data |
| Compute Pairwise Co-resistance Matrices per Pathogen | compute_pairwise_coresistance |
| Compute Pairwise Co-resistance Using Pearson Back-calculation | compute_pairwise_from_data |
| Classify overall posterior predictive fit from a discrepancy-statistics table | compute_posterior_predictive_status |
| Fingerprint the prior-generative configuration of a fitted model | compute_prior_predictive_fingerprint |
| Classify plausibility of the prior predictive distribution | compute_prior_predictive_status |
| Compute AMR-specific posterior predictive discrepancy statistics | compute_probit_ppc_statistics |
| Compute Processing Statistics | compute_processing_statistics |
| Summarise Validation Checks into a Profile-Validation Status | compute_profile_validation_status |
| Compute Resistance Profile Probabilities per Pathogen | compute_resistance_profiles |
| Add RR Pathogen and Drug Class Mappings | daly_add_rr_mappings |
| Assign Per-Class LOS RR to Resistance Profiles (Max Rule) | daly_assign_rr_to_profiles |
| Calculate case fatality ratio by syndrome and pathogen (CFR_{Lk}) | daly_calc_case_fatality |
| Calculate the CFR adjustment factor (CR_L) | daly_calc_cr_l |
| Calculate Deaths by Underlying Cause (D_J) | daly_calc_deaths_by_cause |
| Calculate Deaths by Infectious Syndrome (D_L) | daly_calc_deaths_by_syndrome |
| Calculate syndrome incidence from deaths, CFR, and CR_L (formula-based) | daly_calc_incidence_from_cfr |
| Calculate Infection Fraction of Deaths by Cause (S_J) | daly_calc_infection_fraction |
| Compute PAF for length of stay per resistance profile | daly_calc_paf_los |
| Compute Mortality Population Attributable Fraction per Resistance Profile | daly_calc_paf_mortality |
| Calculate fatal pathogen distribution (P_{Lk}) | daly_calc_pathogen_fraction_fatal |
| Calculate Fatal Resistance Prevalence (R_k) | daly_calc_resistance_prevalence_fatal |
| Calculate Infectious Syndrome Fraction (M_LJ) | daly_calc_syndrome_fraction |
| Compute YLD Associated with Resistance (Direct, Profile-Specific) | daly_calc_yld_associated |
| Compute YLD Attributable to Resistance (Direct, Profile-Specific) | daly_calc_yld_attributable |
| Compute YLL Associated with AMR (Patient-Level, Facility-Direct) | daly_calc_yll_associated |
| Compute YLL Attributable to AMR | daly_calc_yll_attributable |
| Compute Patient-Level Post-Infection LOS | daly_compute_patient_los |
| Count incident cases by syndrome from facility data | daly_count_incident_cases |
| Classify HAI/CAI Infection Type for the Mortality Cohort | daly_derive_hai_cai_for_mortality |
| Filter Resistance Profiles to Classes with RR Estimates | daly_filter_profiles_to_rr_classes |
| Fit relative LOS using Gamma GLM with log link | daly_fit_los_rr |
| Estimate Per-Class LOS Relative Risk via Parametric Distribution Fitting | daly_fit_los_rr_distribution |
| Fit mortality model and derive adjusted relative risk of death | daly_fit_mortality_rr |
| Identify top N pathogens by occurrence | daly_get_top_pathogens |
| Load RR (Relative Risk) Reference Data | daly_load_rr_reference |
| Default column name mappings for fuzzy matching | default_column_mappings |
| Detect Preprocessing Capabilities | detect_preprocessing_capabilities |
| EDA ggplot2 Theme | eda_theme |
| Enumerate All Binary Resistance Profiles for a Set of Antibiotic Classes | enumerate_binary_profiles |
| Estimate Resistance Profile Probabilities via Convex Optimisation | estimate_profiles_convex |
| Estimate Resistance Profiles: Pathway 1 (Convex) or Pathway 2 (Bayesian) | estimate_resistance_profiles |
| Export Report to File | export_report |
| Fit Bayesian Hierarchical Multivariate Probit Model for Resistance Profiles | fit_bayesian_multivariate_probit |
| Fit Multiple Distributions | fit_distributions |
| Generate Preprocessing Report | generate_preprocessing_report |
| Get Age Bin Labels | get_age_bins |
| Extract LOS Vectors by Resistance Status | get_los_by_resistance |
| Human-readable hospital/site display label | hospital_display_label |
| Assign Syndrome from Wide-Format Syndrome Flags | infer_patient_syndrome_wide |
| Masked-AST Holdout Validation | mask_and_validate_ast |
| Plot Antibiotic Resistance ComplexHeatmap | plot_abx_complex_heatmap |
| Plot Antibiotic Resistance Heatmap | plot_abx_heatmap |
| Plot Antibiotic Susceptibility Pattern (Stacked R/S Bars) | plot_abx_susceptibility |
| Ridge / Density Plot of Patient Age | plot_age_ridge |
| Plot YLL or YLD Associated vs Attributable per Hospital | plot_burden_by_hospital |
| Plot YLL or YLD Associated vs Attributable by Organism | plot_burden_by_organism |
| Plot Death vs Discharged Counts for Top Pathogens | plot_death_discharged |
| Plot HAI vs CAI Infection Distribution by Facility | plot_hai_cai_by_facility |
| Plot Infection Type (HAI/CAI) by Location (ICU/Ward), Faceted by Hospital | plot_infection_type_by_location |
| Plot Patient Distribution by Location Type Across Facilities | plot_location_by_facility |
| Boxplot of Length of Stay by Age Group | plot_los_by_agebin |
| Plot LOS Distribution with Fitted Overlays | plot_los_distributions |
| Ridge / Density Plot of Length of Stay (LOS) | plot_los_ridge |
| Plot Mono vs Polymicrobial Infections by Facility | plot_mono_poly_by_facility |
| Sampling-diagnostic (Rhat) heatmap for Omega | plot_omega_convergence_heatmap |
| Posterior-median latent cross-class correlation heatmap (Omega) | plot_omega_correlation_heatmap |
| Near-degeneracy diagnostic for the posterior Omega correlation matrix | plot_omega_degeneracy_diagnostic |
| Full per-pair Omega summary table (rho, 95% CrI, Rhat, ESS bulk/tail) | plot_omega_summary_table |
| Plot Final Outcome Proportions by Age Bin | plot_outcome_by_agebin |
| Plot Final Outcome Proportions for Resistant or Susceptible Patients | plot_outcome_by_organism |
| Plot Distribution of Final Outcomes by Year | plot_outcome_by_year |
| Plot Distribution of Final Outcomes | plot_outcome_distribution |
| Plot Unique Patient Count by Hospital | plot_patients_by_hospital |
| Fixed-effect convergence broken out by source of variation | plot_probit_beta_family_diagnostics |
| Generate diagnostic plots for a fitted Bayesian multivariate probit model | plot_probit_diagnostics |
| Fixed-effect coefficient diagnostics, split by contrast type and faceted by antimicrobial class | plot_probit_fixed_effect_diagnostics |
| Plot posterior predictive checks for a fitted probit model | plot_probit_posterior_predictive_checks |
| Trace and rank plots for the worst-converging structural parameters | plot_probit_worst_offender_diagnostics |
| Human-readable worst-converging structural parameters | plot_probit_worst_parameters |
| Resistance proportion by age group | plot_resistance_by_agebin |
| Resistance proportion for top N organisms | plot_resistance_by_organism |
| Plot Distribution of Antibiotic Resistance Across Sample Types | plot_resistance_by_sample |
| Plot Syndrome Distribution | plot_syndrome_distribution |
| Plot Top Pathogens by Unique Patients | plot_top_organisms |
| Heatmap of YLD per 1 000 Admissions by Organism Group | plot_yld_heatmap |
| Heatmap of YLL per 1 000 Admissions by Resistance Class and Pathogen Group | plot_yll_heatmap |
| Apply Column Map to Rename Columns | prep_apply_column_map |
| Assert Standard Names Are Present | prep_assert_standard_names |
| Assign Age Bins | prep_assign_age_bins |
| Assign a facility type / sector column from a user-supplied mapping | prep_assign_facility_type |
| Assign Organism Group | prep_assign_organism_group |
| Assign One Syndrome Per Patient or Event | prep_assign_patient_syndrome |
| Track Attrition Through the Pipeline | prep_attrition_flow |
| Build and Validate a Column Map Against a Dataset | prep_build_column_map |
| Build Fatal Cohort | prep_build_fatal_cohort |
| Build Non-Fatal Cohort | prep_build_nonfatal_cohort |
| Check required columns exist and report types | prep_check_columns |
| Check join key quality | prep_check_keys |
| Check Organism-AST Consistency | prep_check_organism_ast_consistency |
| Classify Antibiotic to WHO Class | prep_classify_antibiotic_class |
| Classify AWaRe Category | prep_classify_aware |
| Classify MDR and XDR | prep_classify_mdr_xdr |
| Classify Infection-Related Mortality | prep_classify_mortality |
| Classify Readmission Type | prep_classify_readmission |
| Clean Antibiotic Susceptibility Values | prep_clean_ast_values |
| Clean Optional Columns | prep_clean_optional_columns |
| Detect and convert all date-like columns in a table | prep_coerce_dates |
| Collapse to Class Level | prep_collapse_class_level |
| Compute Polymicrobial Weights | compute_polymicrobial_weight prep_compute_poly_weights |
| Create Event IDs from Patient-Level Data | prep_create_event_ids |
| Create Resistance Profile | prep_create_resistance_profile |
| Create Wide Format AST Matrix | prep_create_wide_ast_matrix |
| Decode Antibiotic Short Codes to Full Names | prep_decode_antibiotic_code |
| Handle Duplicate AST Results | prep_deduplicate_ast |
| Deduplicate Events | prep_deduplicate_events |
| Derive Date of Birth from Age Components | prep_derive_dob_from_components |
| Derive HAI/CAI Infection Type | prep_derive_hai_cai |
| Derive ICU Flag | prep_derive_icu_flag |
| Derive Length of Stay from Date Columns | prep_derive_los_from_dates |
| Detect Schema Drift Across Centres | prep_detect_schema_drift |
| Prepare Diagnosis Text | prep_diagnosis_text |
| Extract Genus from Organism Name | prep_extract_genus |
| Extract Species from Organism Name | prep_extract_species |
| Fill Missing Age Values | prep_fill_age |
| Filter Analysis-Ready Records | prep_filter_analysis_ready |
| Filter Fungal Organisms | prep_filter_fungal |
| Filter Minimally Usable Records | prep_filter_minimally_usable |
| Flag Contaminant Organisms | prep_flag_contaminants |
| Flag HAI Inferred vs Observed | prep_flag_hai_inferred |
| Flag Invalid AST Values | prep_flag_invalid_ast |
| Flag Organisms Unmatched in Reference | prep_flag_organism_unmatched |
| Flag Polymicrobial Infections | flag_polymicrobial prep_flag_polymicrobial |
| Flag and Classify Readmissions | prep_flag_readmission |
| Get Contaminant List from Reference File | prep_get_contaminant_list |
| Harmonize AST Values | prep_harmonize_ast |
| Infer Hospital Department | prep_infer_department |
| Inventory Columns | prep_inventory_columns |
| Check if Organism is a Contaminant | prep_is_contaminant |
| Log Data Source Provenance | prep_log_source |
| Map Diagnosis Text to ICD Candidates | prep_map_diagnosis_to_icd |
| Map ICD Codes to Infectious Syndromes | prep_map_icd_to_syndrome |
| Missingness Report | prep_missingness_report |
| Detect and decode encrypted or non-standard date columns | prep_parse_date_column |
| Convert Wide Format to Long Format | prep_pivot_ast_wide_to_long |
| Recode Intermediate (I) Susceptibility Values | prep_recode_intermediate_ast |
| Reconcile Observed and Inferred HAI/CAI Classification | prep_reconcile_hai_observed_inferred |
| Report Preprocessing Capabilities | prep_report_capabilities |
| Split Polymicrobial Episodes by Strategy | prep_split_poly_episode |
| Normalize Antibiotic Names | prep_standardize_antibiotics |
| Standardize Column Names to Package Convention | prep_standardize_column_names |
| Standardize Final Outcome Column | prep_standardize_final_outcome |
| Standardize Infection Type Column | prep_standardize_infection_type |
| Normalize Organism Names | prep_standardize_organisms |
| Standardize Outcome Values (deprecated) | prep_standardize_outcome |
| Standardize Sex Values | prep_standardize_sex |
| Normalize Specimen/Sample Type | prep_standardize_specimens |
| Validate Analysis-Ready Dataset | prep_validate_analysis_ready |
| Validate Date Logic | prep_validate_date_logic |
| Run all pre-join sanity checks for one table | prep_validate_table |
| Prepare LOS Dataset | prepare_los_data |
| Build the generic random-effect representation for an arbitrary number of blocks | prepare_random_effects |
| Preprocess AST Data for Resistance Profile Estimation (Pathway 1) | preprocess_for_profiles |
| Print AMR Configuration | print.amr_config |
| Print Preprocessing Report | print.amr_preprocessing_report |
| Print Method for AMR Preprocessing Results | print.amr_result |
| Compute each event's total random-effect contribution from a flattened re_effect[D, total_re_levels] matrix (as emitted by the generic Stan models' generated re_effect, or reconstructed R-side from posterior draws of z_re/tau_re/L_corr_re). This is the SINGLE generic helper every downstream mu-reconstruction site should call instead of hand-summing hospital_effect/patient_effect/admission_effect. | re_contribution |
| Largest-Remainder Rounding | round_to_sum |
| AMR Data Preprocessing Pipeline | run_preprocess |
| Safely Fit a Distribution | safe_fit |
| Select Resistance Class for Burden Attribution | select_resistance_class |
| Shorten Antibiotic Class Names | shorten_drug_class |
| Simulate mixed predictive replicate datasets: new random-effect levels for a requested block, retaining fitted hyperparameters | simulate_probit_mixed_predictive |
| Simulate posterior predictive replicate datasets from a fitted probit model | simulate_probit_posterior_predictive |
| Simulate prior predictive replicate datasets for a probit model | simulate_probit_prior_predictive |
| Summarise a Fitted Distribution | summarise_distribution |
| Summarize Column Mapping | summarize_column_mapping |
| Summarize Data Quality | summarize_data_quality |
| Summarize a posterior D x D correlation matrix from stored fit draws | summarize_fit_correlation_matrix |
| Summarize Raw Data | summarize_raw_data |
| Summarize Data Transformations | summarize_transformations |
| Summary Method for AMR Preprocessing Results | summary.amr_result |
| Validate Pre-computed Aggregate Marginal Inputs | validate_aggregate_inputs |
| Observed-versus-Model Complete-Profile Validation | validate_complete_profile_calibration |
| Validate a selectable Stan compute backend configuration | validate_compute_backend |
| Validate AMR Configuration | validate_config |
| Validate Data Quality | validate_data_quality |
| Observed-versus-Model Marginal Resistance Validation | validate_marginal_calibration |
| Observed-versus-Model Pairwise Co-resistance Validation | validate_pairwise_calibration |
| Validate Inputs for Resistance Profile Estimation (Pathway 1) | validate_profile_inputs |
| Validate required fields exist and meet completeness threshold | validate_required_fields |