Package: anumaan 0.1.0.9036

Saket Choudhary

anumaan: Antimicrobial Resistance Surveillance Preprocessing and Burden Estimation

anumaan provides a preprocessing pipeline for antimicrobial resistance (AMR) surveillance data, exploratory data analysis (EDA) tools for reviewing cohorts prior to modelling, and burden estimation. Supports polymicrobial weighting, MDR/XDR classification, resistance profile estimation, and burden estimation calculations.

Authors:Nilanjana Dey [aut], Nima Jijo [aut], Namrata Kharat [aut], Saket Choudhary [aut, cre]

anumaan_0.1.0.9036.tar.gz
anumaan_0.1.0.9036.zip(r-4.7-any)anumaan_0.1.0.9036.zip(r-4.6-any)anumaan_0.1.0.9036.zip(r-4.5-any)
anumaan_0.1.0.9036.tgz(r-4.6-any)anumaan_0.1.0.9036.tgz(r-4.5-any)
anumaan_0.1.0.9036.tar.gz(r-4.7-any)anumaan_0.1.0.9036.tar.gz(r-4.6-any)
anumaan_0.1.0.9036.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
anumaan/json (API)

# Install 'anumaan' in R:
install.packages('anumaan', repos = c('https://saketlab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/saketlab/anumaan/issues

Pkgdown/docs site:https://saketlab.github.io

On CRAN:

Conda:

4.92 score 1 stars 6 scripts 202 exports 56 dependencies

Last updated from:f498030b12. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK261
source / vignettesOK305
linux-releaseOK240
macos-releaseOK167
macos-oldrelOK165
windows-develOK167
windows-releaseOK180
windows-oldrelOK214
wasm-releaseOK163

Exports:aggregate_profiles_for_dalyamr_configassess_gibbs_profile_stabilitybootstrap_profiles_convexbuild_constraint_matrixcheck_profile_constraintsclass_display_labelclass_pair_labelclass_short_labelcompare_distribution_aiccompute_event_profile_probabilitiescompute_hospital_dalycompute_marginal_resistancecompute_marginals_from_datacompute_pairwise_coresistancecompute_pairwise_from_datacompute_polymicrobial_weightcompute_posterior_predictive_statuscompute_prior_predictive_fingerprintcompute_prior_predictive_statuscompute_probit_ppc_statisticscompute_processing_statisticscompute_profile_validation_statuscompute_resistance_profilesdaly_add_rr_mappingsdaly_assign_rr_to_profilesdaly_calc_case_fatalitydaly_calc_cr_ldaly_calc_deaths_by_causedaly_calc_deaths_by_syndromedaly_calc_incidence_from_cfrdaly_calc_infection_fractiondaly_calc_paf_losdaly_calc_paf_mortalitydaly_calc_pathogen_fraction_fataldaly_calc_resistance_prevalence_fataldaly_calc_syndrome_fractiondaly_calc_yld_associateddaly_calc_yld_attributabledaly_calc_yll_associateddaly_calc_yll_attributabledaly_compute_patient_losdaly_count_incident_casesdaly_derive_hai_cai_for_mortalitydaly_filter_profiles_to_rr_classesdaly_fit_los_rrdaly_fit_los_rr_distributiondaly_fit_mortality_rrdaly_get_top_pathogensdaly_load_rr_referencedefault_column_mappingsdetect_preprocessing_capabilitieseda_themeenumerate_binary_profilesestimate_profiles_convexestimate_resistance_profilesexport_reportfit_bayesian_multivariate_probitfit_distributionsflag_polymicrobialgenerate_preprocessing_reportget_age_binsget_los_by_resistancehospital_display_labelinfer_patient_syndrome_widemask_and_validate_astplot_abx_complex_heatmapplot_abx_heatmapplot_abx_susceptibilityplot_age_ridgeplot_burden_by_hospitalplot_burden_by_organismplot_death_dischargedplot_hai_cai_by_facilityplot_infection_type_by_locationplot_location_by_facilityplot_los_by_agebinplot_los_distributionsplot_los_ridgeplot_mono_poly_by_facilityplot_omega_convergence_heatmapplot_omega_correlation_heatmapplot_omega_degeneracy_diagnosticplot_omega_summary_tableplot_outcome_by_agebinplot_outcome_by_organismplot_outcome_by_yearplot_outcome_distributionplot_patients_by_hospitalplot_probit_beta_family_diagnosticsplot_probit_diagnosticsplot_probit_fixed_effect_diagnosticsplot_probit_posterior_predictive_checksplot_probit_worst_offender_diagnosticsplot_probit_worst_parametersplot_resistance_by_agebinplot_resistance_by_organismplot_resistance_by_sampleplot_syndrome_distributionplot_top_organismsplot_yld_heatmapplot_yll_heatmapprep_apply_column_mapprep_assert_standard_namesprep_assign_age_binsprep_assign_facility_typeprep_assign_organism_groupprep_assign_patient_syndromeprep_attrition_flowprep_build_column_mapprep_build_fatal_cohortprep_build_nonfatal_cohortprep_check_columnsprep_check_keysprep_check_organism_ast_consistencyprep_classify_antibiotic_classprep_classify_awareprep_classify_mdr_xdrprep_classify_mortalityprep_classify_readmissionprep_clean_ast_valuesprep_clean_optional_columnsprep_coerce_datesprep_collapse_class_levelprep_compute_poly_weightsprep_create_event_idsprep_create_resistance_profileprep_create_wide_ast_matrixprep_decode_antibiotic_codeprep_deduplicate_astprep_deduplicate_eventsprep_derive_dob_from_componentsprep_derive_hai_caiprep_derive_icu_flagprep_derive_los_from_datesprep_detect_schema_driftprep_diagnosis_textprep_extract_genusprep_extract_speciesprep_fill_ageprep_filter_analysis_readyprep_filter_fungalprep_filter_minimally_usableprep_flag_contaminantsprep_flag_hai_inferredprep_flag_invalid_astprep_flag_organism_unmatchedprep_flag_polymicrobialprep_flag_readmissionprep_get_contaminant_listprep_harmonize_astprep_infer_departmentprep_inventory_columnsprep_is_contaminantprep_log_sourceprep_map_diagnosis_to_icdprep_map_icd_to_syndromeprep_missingness_reportprep_parse_date_columnprep_pivot_ast_wide_to_longprep_recode_intermediate_astprep_reconcile_hai_observed_inferredprep_report_capabilitiesprep_split_poly_episodeprep_standardize_antibioticsprep_standardize_column_namesprep_standardize_final_outcomeprep_standardize_infection_typeprep_standardize_organismsprep_standardize_outcomeprep_standardize_sexprep_standardize_specimensprep_validate_analysis_readyprep_validate_date_logicprep_validate_tableprepare_los_dataprepare_random_effectspreprocess_for_profilesre_contributionround_to_sumrun_preprocesssafe_fitselect_resistance_classshorten_drug_classsimulate_probit_mixed_predictivesimulate_probit_posterior_predictivesimulate_probit_prior_predictivesummarise_distributionsummarize_column_mappingsummarize_data_qualitysummarize_fit_correlation_matrixsummarize_raw_datasummarize_transformationsvalidate_aggregate_inputsvalidate_complete_profile_calibrationvalidate_compute_backendvalidate_configvalidate_data_qualityvalidate_marginal_calibrationvalidate_pairwise_calibrationvalidate_profile_inputsvalidate_required_fields

Dependencies:bitbit64cellrangerclicliprcpp11crayondplyrfarverfitdistrplusgenericsggplot2ggridgesgluegtablehmsisobandjaneaustenrlabelinglatticelifecyclelubridatemagrittrMASSMatrixpillarpkgconfigprettyunitsprogresspurrrR6RColorBrewerRcppreadrreadxlrematchrlangS7scalesSnowballCstringdiststringistringrsurvivaltibbletidyrtidyselecttidytexttimechangetokenizerstzdbutf8vctrsviridisLitevroomwithr

DALY Burden Estimation Workflow in anumaan
Overview | Resistance Profile Estimation | Option 1: Convex Optimisation (Pathway 1) | 1.1 Aggregate Input: Validate Marginals | 1.2 Profile Enumeration | 1.3 Constraint Matrix | 1.4 Estimate Profile Probabilities | 1.5 Facility Line-List Pathway | 1.6 Check Constraint Satisfaction | 1.7 Bootstrap Uncertainty Intervals | Option 2: Bayesian Multivariate Probit (Pathway 2) | 2.1 Prepare Event-Level Class Data | 2.2 Fit the Model | 2.3 Convert Posterior Draws to Resistance-Profile Probabilities | 2.4 Aggregate for DALY | 2.5 Validate Calibration | 2.6 Predictive Checks | 2.7 Unified Dispatcher | 2.8 Post-Fit Checklist: What to Run, and Why | Pipeline at a Glance | Session Info

Last update: 2026-08-29
Started: 2026-06-01

Getting Started with anumaan
What is anumaan? | Pipeline 1 — Preprocessing | Pipeline 2 — Exploratory Data Analysis | Pipeline 3 — DALY Burden Estimation | Bayesian multivariate probit backend selection | Installation | Optional dependencies | Data Format | Package Reference

Last update: 2026-08-25
Started: 2026-03-23

Exploratory Data Analysis in anumaan
Overview | Connecting from Pipeline 1 | A Small Synthetic Dataset | Theme | Organism and Susceptibility Overview | Top organisms | Susceptibility pattern (stacked R/S bars) | Resistance heatmap | Resistance by specimen type | Resistance by age bin and by organism | Outcomes | Overall distribution | Outcome by organism, split by resistance status | Death vs. discharged | Outcome by age bin and by year | Case-Mix and Facility Patterns | Patients per hospital | Monomicrobial vs. polymicrobial, by facility | HAI vs. CAI, by facility | Location (ICU vs. Ward), by facility | Infection type by location | Syndrome distribution | Length of Stay and Age Distributions | LOS ridge plot | Age ridge plot | LOS by age bin | Pipeline at a Glance | Summary | Session Info

Last update: 2026-08-17
Started: 2026-08-17

Preprocessing Workflow in anumaan
Overview | A Small Synthetic Raw Dataset | Schema Checks and Column Mapping | Inspect what preprocessing is possible | Build a rename map explicitly | One-step convenience wrapper | Assert the minimum standard names | Dates and Table Validation | Parse a single vector of mixed date encodings | Validate and coerce the working table | Validate chronology | Standardize Core Clinical Fields | Organisms | Specimen, sex, outcome, and infection type | Antibiotics and AST values | Demographic and Clinical Derivations | Fill age and assign age bins | Derive length of stay | Derive HAI/CAI and source flags | Assign facility type | Event Creation and AST Reshaping | Create event IDs from long-format isolates | Deduplicate event-level rows | Classify readmissions from admission dates | Standardize non-conforming readmission labels | Pivot wide AST input to long format | Deduplicate AST records | MDR/XDR Classification | Collapse to class level | Classify MDR/XDR | Contaminants and Polymicrobial Episodes | Flag likely contaminants | Exclude fungal isolates when needed | Flag and weight polymicrobial episodes | Attrition and Analysis Readiness | Track attrition across preprocessing stages | Final readiness checks | Summary

Last update: 2026-08-17
Started: 2026-05-15

Readme and manuals

Help Manual

Help pageTopics
Aggregate Posterior Profile Draws into R_ALL / R_KNOWN_OUTCOME / R_NF Summariesaggregate_profiles_for_daly
Create AMR Preprocessing Configurationamr_config
Assess Numerical Stability of Correlated Profile Completionassess_gibbs_profile_stability
Bootstrap Uncertainty Intervals for Resistance Profile Probabilitiesbootstrap_profiles_convex
Build QP Constraint Matrix and Target Vectorbuild_constraint_matrix
Formally Check Resistance Profile Probability Constraintscheck_profile_constraints
Human-readable antimicrobial class labelclass_display_label
Human-readable class-pair labelclass_pair_label
Short antimicrobial class label (for dense facet strips)class_short_label
Compare Distribution Fits by AICcompare_distribution_aic
Compute Observed-Plus-Imputed Resistance Profile Probabilitiescompute_event_profile_probabilities
Compute Hospital-Level DALY Breakdowncompute_hospital_daly
Compute Marginal Resistance per Pathogen and Antibiotic Classcompute_marginal_resistance
Compute Marginal Resistance Rates from Preprocessed Wide Datacompute_marginals_from_data
Compute Pairwise Co-resistance Matrices per Pathogencompute_pairwise_coresistance
Compute Pairwise Co-resistance Using Pearson Back-calculationcompute_pairwise_from_data
Classify overall posterior predictive fit from a discrepancy-statistics tablecompute_posterior_predictive_status
Fingerprint the prior-generative configuration of a fitted modelcompute_prior_predictive_fingerprint
Classify plausibility of the prior predictive distributioncompute_prior_predictive_status
Compute AMR-specific posterior predictive discrepancy statisticscompute_probit_ppc_statistics
Compute Processing Statisticscompute_processing_statistics
Summarise Validation Checks into a Profile-Validation Statuscompute_profile_validation_status
Compute Resistance Profile Probabilities per Pathogencompute_resistance_profiles
Add RR Pathogen and Drug Class Mappingsdaly_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 profiledaly_calc_paf_los
Compute Mortality Population Attributable Fraction per Resistance Profiledaly_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 AMRdaly_calc_yll_attributable
Compute Patient-Level Post-Infection LOSdaly_compute_patient_los
Count incident cases by syndrome from facility datadaly_count_incident_cases
Classify HAI/CAI Infection Type for the Mortality Cohortdaly_derive_hai_cai_for_mortality
Filter Resistance Profiles to Classes with RR Estimatesdaly_filter_profiles_to_rr_classes
Fit relative LOS using Gamma GLM with log linkdaly_fit_los_rr
Estimate Per-Class LOS Relative Risk via Parametric Distribution Fittingdaly_fit_los_rr_distribution
Fit mortality model and derive adjusted relative risk of deathdaly_fit_mortality_rr
Identify top N pathogens by occurrencedaly_get_top_pathogens
Load RR (Relative Risk) Reference Datadaly_load_rr_reference
Default column name mappings for fuzzy matchingdefault_column_mappings
Detect Preprocessing Capabilitiesdetect_preprocessing_capabilities
EDA ggplot2 Themeeda_theme
Enumerate All Binary Resistance Profiles for a Set of Antibiotic Classesenumerate_binary_profiles
Estimate Resistance Profile Probabilities via Convex Optimisationestimate_profiles_convex
Estimate Resistance Profiles: Pathway 1 (Convex) or Pathway 2 (Bayesian)estimate_resistance_profiles
Export Report to Fileexport_report
Fit Bayesian Hierarchical Multivariate Probit Model for Resistance Profilesfit_bayesian_multivariate_probit
Fit Multiple Distributionsfit_distributions
Generate Preprocessing Reportgenerate_preprocessing_report
Get Age Bin Labelsget_age_bins
Extract LOS Vectors by Resistance Statusget_los_by_resistance
Human-readable hospital/site display labelhospital_display_label
Assign Syndrome from Wide-Format Syndrome Flagsinfer_patient_syndrome_wide
Masked-AST Holdout Validationmask_and_validate_ast
Plot Antibiotic Resistance ComplexHeatmapplot_abx_complex_heatmap
Plot Antibiotic Resistance Heatmapplot_abx_heatmap
Plot Antibiotic Susceptibility Pattern (Stacked R/S Bars)plot_abx_susceptibility
Ridge / Density Plot of Patient Ageplot_age_ridge
Plot YLL or YLD Associated vs Attributable per Hospitalplot_burden_by_hospital
Plot YLL or YLD Associated vs Attributable by Organismplot_burden_by_organism
Plot Death vs Discharged Counts for Top Pathogensplot_death_discharged
Plot HAI vs CAI Infection Distribution by Facilityplot_hai_cai_by_facility
Plot Infection Type (HAI/CAI) by Location (ICU/Ward), Faceted by Hospitalplot_infection_type_by_location
Plot Patient Distribution by Location Type Across Facilitiesplot_location_by_facility
Boxplot of Length of Stay by Age Groupplot_los_by_agebin
Plot LOS Distribution with Fitted Overlaysplot_los_distributions
Ridge / Density Plot of Length of Stay (LOS)plot_los_ridge
Plot Mono vs Polymicrobial Infections by Facilityplot_mono_poly_by_facility
Sampling-diagnostic (Rhat) heatmap for Omegaplot_omega_convergence_heatmap
Posterior-median latent cross-class correlation heatmap (Omega)plot_omega_correlation_heatmap
Near-degeneracy diagnostic for the posterior Omega correlation matrixplot_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 Binplot_outcome_by_agebin
Plot Final Outcome Proportions for Resistant or Susceptible Patientsplot_outcome_by_organism
Plot Distribution of Final Outcomes by Yearplot_outcome_by_year
Plot Distribution of Final Outcomesplot_outcome_distribution
Plot Unique Patient Count by Hospitalplot_patients_by_hospital
Fixed-effect convergence broken out by source of variationplot_probit_beta_family_diagnostics
Generate diagnostic plots for a fitted Bayesian multivariate probit modelplot_probit_diagnostics
Fixed-effect coefficient diagnostics, split by contrast type and faceted by antimicrobial classplot_probit_fixed_effect_diagnostics
Plot posterior predictive checks for a fitted probit modelplot_probit_posterior_predictive_checks
Trace and rank plots for the worst-converging structural parametersplot_probit_worst_offender_diagnostics
Human-readable worst-converging structural parametersplot_probit_worst_parameters
Resistance proportion by age groupplot_resistance_by_agebin
Resistance proportion for top N organismsplot_resistance_by_organism
Plot Distribution of Antibiotic Resistance Across Sample Typesplot_resistance_by_sample
Plot Syndrome Distributionplot_syndrome_distribution
Plot Top Pathogens by Unique Patientsplot_top_organisms
Heatmap of YLD per 1 000 Admissions by Organism Groupplot_yld_heatmap
Heatmap of YLL per 1 000 Admissions by Resistance Class and Pathogen Groupplot_yll_heatmap
Apply Column Map to Rename Columnsprep_apply_column_map
Assert Standard Names Are Presentprep_assert_standard_names
Assign Age Binsprep_assign_age_bins
Assign a facility type / sector column from a user-supplied mappingprep_assign_facility_type
Assign Organism Groupprep_assign_organism_group
Assign One Syndrome Per Patient or Eventprep_assign_patient_syndrome
Track Attrition Through the Pipelineprep_attrition_flow
Build and Validate a Column Map Against a Datasetprep_build_column_map
Build Fatal Cohortprep_build_fatal_cohort
Build Non-Fatal Cohortprep_build_nonfatal_cohort
Check required columns exist and report typesprep_check_columns
Check join key qualityprep_check_keys
Check Organism-AST Consistencyprep_check_organism_ast_consistency
Classify Antibiotic to WHO Classprep_classify_antibiotic_class
Classify AWaRe Categoryprep_classify_aware
Classify MDR and XDRprep_classify_mdr_xdr
Classify Infection-Related Mortalityprep_classify_mortality
Classify Readmission Typeprep_classify_readmission
Clean Antibiotic Susceptibility Valuesprep_clean_ast_values
Clean Optional Columnsprep_clean_optional_columns
Detect and convert all date-like columns in a tableprep_coerce_dates
Collapse to Class Levelprep_collapse_class_level
Compute Polymicrobial Weightscompute_polymicrobial_weight prep_compute_poly_weights
Create Event IDs from Patient-Level Dataprep_create_event_ids
Create Resistance Profileprep_create_resistance_profile
Create Wide Format AST Matrixprep_create_wide_ast_matrix
Decode Antibiotic Short Codes to Full Namesprep_decode_antibiotic_code
Handle Duplicate AST Resultsprep_deduplicate_ast
Deduplicate Eventsprep_deduplicate_events
Derive Date of Birth from Age Componentsprep_derive_dob_from_components
Derive HAI/CAI Infection Typeprep_derive_hai_cai
Derive ICU Flagprep_derive_icu_flag
Derive Length of Stay from Date Columnsprep_derive_los_from_dates
Detect Schema Drift Across Centresprep_detect_schema_drift
Prepare Diagnosis Textprep_diagnosis_text
Extract Genus from Organism Nameprep_extract_genus
Extract Species from Organism Nameprep_extract_species
Fill Missing Age Valuesprep_fill_age
Filter Analysis-Ready Recordsprep_filter_analysis_ready
Filter Fungal Organismsprep_filter_fungal
Filter Minimally Usable Recordsprep_filter_minimally_usable
Flag Contaminant Organismsprep_flag_contaminants
Flag HAI Inferred vs Observedprep_flag_hai_inferred
Flag Invalid AST Valuesprep_flag_invalid_ast
Flag Organisms Unmatched in Referenceprep_flag_organism_unmatched
Flag Polymicrobial Infectionsflag_polymicrobial prep_flag_polymicrobial
Flag and Classify Readmissionsprep_flag_readmission
Get Contaminant List from Reference Fileprep_get_contaminant_list
Harmonize AST Valuesprep_harmonize_ast
Infer Hospital Departmentprep_infer_department
Inventory Columnsprep_inventory_columns
Check if Organism is a Contaminantprep_is_contaminant
Log Data Source Provenanceprep_log_source
Map Diagnosis Text to ICD Candidatesprep_map_diagnosis_to_icd
Map ICD Codes to Infectious Syndromesprep_map_icd_to_syndrome
Missingness Reportprep_missingness_report
Detect and decode encrypted or non-standard date columnsprep_parse_date_column
Convert Wide Format to Long Formatprep_pivot_ast_wide_to_long
Recode Intermediate (I) Susceptibility Valuesprep_recode_intermediate_ast
Reconcile Observed and Inferred HAI/CAI Classificationprep_reconcile_hai_observed_inferred
Report Preprocessing Capabilitiesprep_report_capabilities
Split Polymicrobial Episodes by Strategyprep_split_poly_episode
Normalize Antibiotic Namesprep_standardize_antibiotics
Standardize Column Names to Package Conventionprep_standardize_column_names
Standardize Final Outcome Columnprep_standardize_final_outcome
Standardize Infection Type Columnprep_standardize_infection_type
Normalize Organism Namesprep_standardize_organisms
Standardize Outcome Values (deprecated)prep_standardize_outcome
Standardize Sex Valuesprep_standardize_sex
Normalize Specimen/Sample Typeprep_standardize_specimens
Validate Analysis-Ready Datasetprep_validate_analysis_ready
Validate Date Logicprep_validate_date_logic
Run all pre-join sanity checks for one tableprep_validate_table
Prepare LOS Datasetprepare_los_data
Build the generic random-effect representation for an arbitrary number of blocksprepare_random_effects
Preprocess AST Data for Resistance Profile Estimation (Pathway 1)preprocess_for_profiles
Print AMR Configurationprint.amr_config
Print Preprocessing Reportprint.amr_preprocessing_report
Print Method for AMR Preprocessing Resultsprint.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 Roundinground_to_sum
AMR Data Preprocessing Pipelinerun_preprocess
Safely Fit a Distributionsafe_fit
Select Resistance Class for Burden Attributionselect_resistance_class
Shorten Antibiotic Class Namesshorten_drug_class
Simulate mixed predictive replicate datasets: new random-effect levels for a requested block, retaining fitted hyperparameterssimulate_probit_mixed_predictive
Simulate posterior predictive replicate datasets from a fitted probit modelsimulate_probit_posterior_predictive
Simulate prior predictive replicate datasets for a probit modelsimulate_probit_prior_predictive
Summarise a Fitted Distributionsummarise_distribution
Summarize Column Mappingsummarize_column_mapping
Summarize Data Qualitysummarize_data_quality
Summarize a posterior D x D correlation matrix from stored fit drawssummarize_fit_correlation_matrix
Summarize Raw Datasummarize_raw_data
Summarize Data Transformationssummarize_transformations
Summary Method for AMR Preprocessing Resultssummary.amr_result
Validate Pre-computed Aggregate Marginal Inputsvalidate_aggregate_inputs
Observed-versus-Model Complete-Profile Validationvalidate_complete_profile_calibration
Validate a selectable Stan compute backend configurationvalidate_compute_backend
Validate AMR Configurationvalidate_config
Validate Data Qualityvalidate_data_quality
Observed-versus-Model Marginal Resistance Validationvalidate_marginal_calibration
Observed-versus-Model Pairwise Co-resistance Validationvalidate_pairwise_calibration
Validate Inputs for Resistance Profile Estimation (Pathway 1)validate_profile_inputs
Validate required fields exist and meet completeness thresholdvalidate_required_fields