{
  "_id": "6ae31a4395ca2370cc8cd970",
  "Package": "HHBayes",
  "Title": "Bayesian Household Transmission Modeling with 'Stan'",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(given = \"Ke\", family = \"Li\",\nemail = \"ke.li.kl662@yale.edu\",\nrole = c(\"aut\",\"cre\"),\ncomment = c(ORCID = \"0000-0002-1252-670X\")),\nperson(given = \"Yiren\", family = \"Hou\",\nemail = \"yiren.hou@yale.edu\",\nrole = \"aut\",\ncomment = c(ORCID = \"0009-0005-0422-4268\"))\n)",
  "Description": "Provides a streamlined pipeline to simulate household\ninfection dynamics, estimate transmission parameters, and\nvisualize epidemic timelines. Uses a Bayesian approach with\n'Stan' that models transmission probability as a function of\nviral load, seasonality and infectivity, multiple infection\nepisodes (reinfections), and waning immunity modeling. Li et\nal. (2026) <doi:10.64898/2026.04.01.26349903>).",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "Biarch": "true",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/keli5734/HHBayes",
  "BugReports": "https://github.com/keli5734/HHBayes/issues",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-29 09:57:16 UTC",
    "User": "root"
  },
  "Author": "Ke Li [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-1252-670X>), Yiren Hou [aut]\n(ORCID: <https://orcid.org/0009-0005-0422-4268>)",
  "Maintainer": "Ke Li <ke.li.kl662@yale.edu>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-04-10 15:10:28 UTC",
  "RemoteUrl": "https://github.com/cran/HHBayes",
  "RemoteRef": "HEAD",
  "RemoteSha": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
  "_user": "cran",
  "_type": "src",
  "_file": "HHBayes_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/7889d63f753012159e7158e04b46fbbe280d9afd53a01f6df48a2d061f9592ea",
  "_filesize": 619655,
  "_sha256": "7889d63f753012159e7158e04b46fbbe280d9afd53a01f6df48a2d061f9592ea",
  "_expires": "2027-02-06T10:04:49.000Z",
  "_created": "2026-10-29T09:57:16.000Z",
  "_published": "2026-10-29T10:04:51.306Z",
  "_upstream": "https://github.com/cran/HHBayes",
  "_status": "success",
  "_maintainer": {
    "name": "Ke Li",
    "email": "ke.li.kl662@yale.edu",
    "orcid": "0000-0002-1252-670X"
  },
  "_jobs": [
    {
      "job": 123379791303,
      "time": 216,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12887719638"
    },
    {
      "job": 123379791144,
      "time": 237,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12888192614"
    },
    {
      "job": 123379791131,
      "time": 211,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12888925942"
    },
    {
      "job": 123379791309,
      "time": 263,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12887914149"
    },
    {
      "job": 123376979967,
      "time": 383,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12888940082"
    },
    {
      "job": 123379791063,
      "time": 196,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12887679557"
    },
    {
      "job": 123379791265,
      "time": 335,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12887993229"
    },
    {
      "job": 123379791319,
      "time": 314,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12888846340"
    },
    {
      "job": 123379791213,
      "time": 345,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12888856722"
    },
    {
      "job": 123379791108,
      "time": 283,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12889120138"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441",
  "_commit": {
    "id": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
    "author": "Ke Li <ke.li.kl662@yale.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.1\n",
    "time": 1775833828
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.18.0",
      "role": "LinkingTo"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.4.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "ggpubr",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "deSolve",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-15",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.1",
      "date": "2026-04-10"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 290,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/HHBayes"
  },
  "_devurl": "https://github.com/keli5734/hhbayes",
  "_searchresults": 0,
  "_topics": [
    "onetbb",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/HHBayes.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/keli5734/hhbayes",
  "_realowner": "keli5734",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2026-04-10"
    }
  ],
  "_exports": [
    "calculate_sar_quick",
    "calculate_sar_robust",
    "fill_missing_viral_data",
    "fit_household_model",
    "plot_covariate_effects",
    "plot_epidemic_curve",
    "plot_household_timeline",
    "plot_posterior_distributions",
    "prepare_stan_data",
    "reconstruct_transmission_chains",
    "simulate_multiple_households_comm",
    "summarize_attack_rates"
  ],
  "_help": [
    {
      "page": "calculate_sar_quick",
      "title": "Quick Secondary Attack Rate (SAR) Calculator",
      "topics": [
        "calculate_sar_quick"
      ]
    },
    {
      "page": "calculate_sar_robust",
      "title": "Calculate Secondary Attack Rate (SAR)",
      "topics": [
        "calculate_sar_robust"
      ]
    },
    {
      "page": "fill_missing_viral_data",
      "title": "Fill Missing Viral Data (Cycle Threshold or Log10) Based on Episode Start",
      "topics": [
        "fill_missing_viral_data"
      ]
    },
    {
      "page": "fit_household_model",
      "title": "Fit Household Transmission Model",
      "topics": [
        "fit_household_model"
      ]
    },
    {
      "page": "plot_covariate_effects",
      "title": "Plot Covariate Coefficients (Forest Plot)",
      "topics": [
        "plot_covariate_effects"
      ]
    },
    {
      "page": "plot_epidemic_curve",
      "title": "Plot Dual-Axis Epidemic Curve (Binned)",
      "topics": [
        "plot_epidemic_curve"
      ]
    },
    {
      "page": "plot_household_timeline",
      "title": "Plot Household Timeline with Person-Centric Reinfections",
      "topics": [
        "plot_household_timeline"
      ]
    },
    {
      "page": "plot_posterior_distributions",
      "title": "Plot Posterior Distributions (Phi and Kappa)",
      "topics": [
        "plot_posterior_distributions"
      ]
    },
    {
      "page": "prepare_stan_data",
      "title": "Prepare Data for Stan Model",
      "topics": [
        "prepare_stan_data"
      ]
    },
    {
      "page": "reconstruct_transmission_chains",
      "title": "Reconstruct Transmission Chains",
      "topics": [
        "reconstruct_transmission_chains"
      ]
    },
    {
      "page": "simulate_multiple_households_comm",
      "title": "Simulate Household Transmission",
      "topics": [
        "simulate_multiple_households_comm"
      ]
    },
    {
      "page": "summarize_attack_rates",
      "title": "Summarize Attack Rates and Reinfections",
      "topics": [
        "summarize_attack_rates"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/HHBayes/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/HHBayes/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "boot",
    "broom",
    "callr",
    "car",
    "carData",
    "checkmate",
    "cli",
    "colorspace",
    "corrplot",
    "cowplot",
    "cpp11",
    "Deriv",
    "desc",
    "deSolve",
    "distributional",
    "doBy",
    "dplyr",
    "farver",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "loo",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "matrixStats",
    "mgcv",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "otel",
    "pbkrtest",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "polynom",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "quantreg",
    "QuickJSR",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "reformulas",
    "rlang",
    "rstan",
    "rstantools",
    "rstatix",
    "S7",
    "scales",
    "SparseM",
    "StanHeaders",
    "stringi",
    "stringr",
    "survival",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_sysdeps": [
    {
      "shlib": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "HHBayes-tutorial.Rmd",
      "filename": "HHBayes-tutorial.html",
      "title": "Getting Started with HHBayes",
      "author": "Ke Li",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Part 1: Study Setup",
        "1.1 Study Timeline",
        "1.2 Surveillance Data (Community Forcing)",
        "1.3 Contact Matrix (Role Mixing Weights)",
        "1.4 Household Composition",
        "1.5 Intervention Strategies (Covariates)",
        "Part 2: Simulation",
        "2.1 Run the Simulator",
        "2.2 Inspect the Output",
        "2.3 Summarize Attack Rates",
        "2.4 Plot the Epidemic Curve",
        "Part 3: Preparing Data for Stan",
        "3.1 Join Covariates to Diagnostic Data",
        "3.2 Define Priors",
        "3.3 Viral Load Imputation Parameters",
        "3.4 Build the Stan Input",
        "Part 4: Fitting the Bayesian Model",
        "4.1 Run HMC Sampling",
        "4.2 View Summary",
        "4.3 Convergence Diagnostics",
        "Part 5: Visualization",
        "5.1 Posterior Distributions",
        "5.2 Covariate Effects (Forest Plot)",
        "5.3 Transmission Chain Reconstruction",
        "5.4 Household Timeline",
        "Appendix A: Complete Script",
        "Session Info"
      ],
      "created": "2026-04-10 15:10:28",
      "modified": "2026-04-10 15:10:28",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "hhbayes",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://keli5734.r-universe.dev/HHBayes",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-29T10:00:38.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/4b0c4acb0736ae7d9eb57dd066f4419153917278ed4fad514d194c5bfdd6765b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-29T10:01:02.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/b80bb7449347c71716bfc3cb3fc35800a1456f878bbc91d66bcd0f96da763f81",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-29T10:00:39.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/143042795d6021fe31bf16da9d99d53cc684bf8c2a1623672dfb10ee078c4018",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-29T10:01:05.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/9542110ca42c4bc3afe05411e50b6e511546dc3bad5cb96c1e3d08376aa6d381",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-29T10:01:09.000Z",
      "arch": "emscripten",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/c6bb6eb8c80407f82a7949cdbec99ec06c661354f32db6b389305186003d5168",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-29T10:02:27.000Z",
      "arch": "aarch64",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/8fb4b4c51f800885d6898e9411d211c1a29a0625bb82d0c628c064f265392b13",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-29T10:00:16.000Z",
      "arch": "x86_64",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/8a0c38df86814389f2b33f18bede67542b52c75358fdbf76cbd9e8f38f6b34c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-29T10:02:35.000Z",
      "arch": "aarch64",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/5cacea6105994074cab3e07b7d6973bd4549f529c1398b9649671fddbd456467",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-29T10:00:27.000Z",
      "arch": "x86_64",
      "commit": "57eb35cb5b446769c0de7d3d1a4adfd95b4bdd7b",
      "fileid": "https://r2.ropensci.org/211215bb1d3b76d0e8037b1cf02f33203159fd2e0e3a974432646d5e99fb74a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40852964441"
    }
  ]
}