Package: HHBayes 0.1.1


Ke Li
HHBayes: Bayesian Household Transmission Modeling with 'Stan'
Provides a streamlined pipeline to simulate household infection dynamics, estimate transmission parameters, and visualize epidemic timelines. Uses a Bayesian approach with 'Stan' that models transmission probability as a function of viral load, seasonality and infectivity, multiple infection episodes (reinfections), and waning immunity modeling. Li et al. (2026) <doi:10.64898/2026.04.01.26349903>).
Authors:
HHBayes_0.1.1.tar.gz
HHBayes_0.1.1.zip(r-4.7-x86_64)HHBayes_0.1.1.zip(r-4.7-arm64)HHBayes_0.1.1.zip(r-4.6-x86_64)HHBayes_0.1.1.zip(r-4.6-arm64)
HHBayes_0.1.1.tar.gz(r-4.7-arm64)HHBayes_0.1.1.tar.gz(r-4.7-x86_64)HHBayes_0.1.1.tar.gz(r-4.6-arm64)HHBayes_0.1.1.tar.gz(r-4.6-x86_64)
HHBayes_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
HHBayes/json (API)
| # Install 'HHBayes' in R: |
| install.packages('HHBayes', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/keli5734/hhbayes/issues
Last updated from:57eb35cb5b. Checks:10 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 216 | ||
| linux-devel-x86_64 | OK | 237 | ||
| source / vignettes | OK | 383 | ||
| linux-release-arm64 | OK | 211 | ||
| linux-release-x86_64 | OK | 263 | ||
| windows-devel-arm64 | OK | 335 | ||
| windows-devel-x86_64 | OK | 314 | ||
| windows-release-arm64 | OK | 345 | ||
| windows-release-x86_64 | OK | 283 | ||
| wasm-release | OK | 196 |
Exports:calculate_sar_quickcalculate_sar_robustfill_missing_viral_datafit_household_modelplot_covariate_effectsplot_epidemic_curveplot_household_timelineplot_posterior_distributionsprepare_stan_datareconstruct_transmission_chainssimulate_multiple_households_commsummarize_attack_rates
Dependencies:abindbackportsBHbootbroomcallrcarcarDatacheckmateclicolorspacecorrplotcowplotcpp11DerivdescdeSolvedistributionaldoBydplyrfarverforecastFormulafracdiffgenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtableinlineisobandlabelinglatticelifecyclelme4lmtestloomagrittrMASSMatrixMatrixModelsmatrixStatsmgcvminqamodelrnlmenloptrnnetnumDerivotelpbkrtestpillarpkgbuildpkgconfigpolynomposteriorprocessxpspurrrquantregQuickJSRR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreformulasrlangrstanrstantoolsrstatixS7scalesSparseMStanHeadersstringistringrsurvivaltensorAtibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Quick Secondary Attack Rate (SAR) Calculator | calculate_sar_quick |
| Calculate Secondary Attack Rate (SAR) | calculate_sar_robust |
| Fill Missing Viral Data (Cycle Threshold or Log10) Based on Episode Start | fill_missing_viral_data |
| Fit Household Transmission Model | fit_household_model |
| Plot Covariate Coefficients (Forest Plot) | plot_covariate_effects |
| Plot Dual-Axis Epidemic Curve (Binned) | plot_epidemic_curve |
| Plot Household Timeline with Person-Centric Reinfections | plot_household_timeline |
| Plot Posterior Distributions (Phi and Kappa) | plot_posterior_distributions |
| Prepare Data for Stan Model | prepare_stan_data |
| Reconstruct Transmission Chains | reconstruct_transmission_chains |
| Simulate Household Transmission | simulate_multiple_households_comm |
| Summarize Attack Rates and Reinfections | summarize_attack_rates |
