{
  "_id": "6a27c67a24555f66ed53f8d3",
  "Package": "ham",
  "Title": "Healthcare Analysis Methods",
  "Version": "1.2.0.9000",
  "Authors@R": "person(\"Stephen\", \"Zuniga\", , \"rms.shiny@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-1458-3924\"))",
  "Description": "Conducts analyses for healthcare program evaluations or\nintervention studies. Calculates regression analyses for\nstandard ordinary least squares (OLS or linear) or logistic\nmodels. Performs regression models used for causal modeling\nsuch as differences-in-differences (DID) and interrupted time\nseries (ITS) models. Provides limited interpretations of model\nresults and a ranking of variable importance in models.\nPerforms propensity score models, top-coding of model outcome\nvariables, and can return new data with the newly formed\nvariables. Conducts Bayesian analysis summaries and graphs,\ndecision curve analysis, and produces some Shewhart control\ncharts. Also performs Cronbach's alpha for various scale items\n(e.g., survey questions). See Github URL for examples in the\nREADME file. For more details on the statistical methods, see\nAllen & Yen (1979, ISBN:0-8185-0283-5), Angrist & Pischke\n(2009, ISBN:9780691120355), Cohen (1988, ISBN:0-8058-0283-5),\nGebski (2012) <doi:10.1017/S0950268812000179>, Gelman &\nGoodrich (2019) <doi:10.1080/00031305.2018.1549100>, Harrell\n(2016, ISBN:978-3-319-19424-0), Kline (1999,\nISBN:9780415211581), Kruschke (2014, ISBN:9780124058880),\nLinden (2015) <doi:10.1177/1536867X1501500208>, Merlo (2006)\n<doi:10.1136/jech.2004.029454>, Muthen & Satorra (1995)\n<doi:10.2307/271070>, Rabe-Hesketh & Skrondal (2008,\nISBN:978-1-59718-040-5), Ryan (2011, ISBN:978-0-470-59074-4),\nand Vickers & Elkin (2006) <doi:10.1177/0272989X06295361>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "URL": "https://github.com/szuniga07/ham",
  "BugReports": "https://github.com/szuniga07/ham/issues",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Repository": "https://szuniga07.r-universe.dev",
  "Date/Publication": "2026-06-09 04:17:04 UTC",
  "RemoteUrl": "https://github.com/szuniga07/ham",
  "RemoteRef": "HEAD",
  "RemoteSha": "55ea168037c24a912ddba126239ab8eb2c979d87",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-09 07:48:11 UTC",
    "User": "root"
  },
  "Author": "Stephen Zuniga [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-1458-3924>)",
  "Maintainer": "Stephen Zuniga <rms.shiny@gmail.com>",
  "MD5sum": "87bf6711906973a0130a249427e5101e",
  "_user": "szuniga07",
  "_type": "src",
  "_file": "ham_1.2.0.9000.tar.gz",
  "_fileid": "9af390b7c34bfbfaf2e3bba7ec805a1567db4421e9f3d23a129fea07854fb3b3",
  "_filesize": 4434109,
  "_sha256": "9af390b7c34bfbfaf2e3bba7ec805a1567db4421e9f3d23a129fea07854fb3b3",
  "_created": "2026-06-09T07:48:11.000Z",
  "_published": "2026-06-09T07:53:30.388Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80273497878,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7501613122"
    },
    {
      "job": 80273497895,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501611158"
    },
    {
      "job": 80273497876,
      "time": 160,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7501621501"
    },
    {
      "job": 80273497894,
      "time": 103,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501659077"
    },
    {
      "job": 80272947913,
      "time": 208,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501563948"
    },
    {
      "job": 80273497864,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501597845"
    },
    {
      "job": 80273497905,
      "time": 118,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7501604806"
    },
    {
      "job": 80273497872,
      "time": 110,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7501601837"
    },
    {
      "job": 80273497857,
      "time": 81,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501592386"
    }
  ],
  "_buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/szuniga07/ham",
  "_commit": {
    "id": "55ea168037c24a912ddba126239ab8eb2c979d87",
    "author": "szuniga07 <szuniga07@gmail.com>",
    "committer": "szuniga07 <szuniga07@gmail.com>",
    "message": "assess, did & its weights\n",
    "time": 1780978624
  },
  "_maintainer": {
    "name": "Stephen Zuniga",
    "email": "rms.shiny@gmail.com",
    "orcid": "0000-0003-1458-3924"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "szuniga07",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-32",
      "n": 30
    },
    {
      "week": "2025-33",
      "n": 9
    },
    {
      "week": "2025-34",
      "n": 5
    },
    {
      "week": "2025-35",
      "n": 6
    },
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 11
    },
    {
      "week": "2025-38",
      "n": 5
    },
    {
      "week": "2025-39",
      "n": 2
    },
    {
      "week": "2025-40",
      "n": 5
    },
    {
      "week": "2025-41",
      "n": 6
    },
    {
      "week": "2025-42",
      "n": 6
    },
    {
      "week": "2025-43",
      "n": 11
    },
    {
      "week": "2025-44",
      "n": 13
    },
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 3
    },
    {
      "week": "2026-05",
      "n": 8
    },
    {
      "week": "2026-06",
      "n": 7
    },
    {
      "week": "2026-07",
      "n": 5
    },
    {
      "week": "2026-08",
      "n": 30
    },
    {
      "week": "2026-09",
      "n": 16
    },
    {
      "week": "2026-10",
      "n": 19
    },
    {
      "week": "2026-11",
      "n": 12
    },
    {
      "week": "2026-12",
      "n": 8
    },
    {
      "week": "2026-23",
      "n": 2
    },
    {
      "week": "2026-24",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.0.0",
      "date": "2025-08-23"
    },
    {
      "name": "v1.1.0",
      "date": "2025-10-28"
    },
    {
      "name": "v1.2.0",
      "date": "2026-03-19"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "szuniga07",
      "count": 226,
      "uuid": 9120301
    }
  ],
  "_userbio": {
    "uuid": 9120301,
    "type": "user",
    "name": "szuniga07"
  },
  "_downloads": {
    "count": 117,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ham"
  },
  "_devurl": "https://github.com/szuniga07/ham",
  "_searchresults": 14,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/ham.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/szuniga07/ham",
  "_realowner": "szuniga07",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-08-28"
    },
    {
      "version": "1.1.0",
      "date": "2025-10-28"
    },
    {
      "version": "1.2.0",
      "date": "2026-03-20"
    }
  ],
  "_exports": [
    "alpha",
    "assess",
    "Bayes",
    "control",
    "decide",
    "group",
    "importance",
    "interpret",
    "itsEffect"
  ],
  "_datasets": [
    {
      "name": "cas",
      "title": "Patient survey data",
      "object": "cas",
      "class": [
        "data.frame"
      ],
      "fields": [
        "i1",
        "i2",
        "i3",
        "i4",
        "i5"
      ],
      "rows": 100,
      "table": true,
      "tojson": true
    },
    {
      "name": "co2mcmc",
      "title": "Markov Chain Monte Carlo linear regression estimates of plant's CO2 uptake regressed on ambient carbon dioxide concentrations",
      "object": "co2mcmc",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "co2multi",
      "title": "Bayes class object with summarized Markov Chain Monte Carlo estimates of plant's CO2 uptake as a binary variable that is above or below the median level",
      "object": "co2multi",
      "class": [
        "Bayes",
        "ham",
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "hosp1",
      "title": "Patient hospital program/intervention data, intervention group only",
      "object": "hosp1",
      "class": [
        "data.frame"
      ],
      "fields": [
        "survey",
        "los",
        "cost",
        "rdm30",
        "death30",
        "female",
        "age",
        "risk",
        "month",
        "program"
      ],
      "rows": 335,
      "table": true,
      "tojson": true
    },
    {
      "name": "hosprog",
      "title": "Patient hospital program/intervention data",
      "object": "hosprog",
      "class": [
        "data.frame"
      ],
      "fields": [
        "survey",
        "los",
        "cost",
        "rdm30",
        "death30",
        "female",
        "age",
        "risk",
        "month",
        "program"
      ],
      "rows": 720,
      "table": true,
      "tojson": true
    },
    {
      "name": "infections",
      "title": "Hospital acquired infections (HAI) during 41 months.",
      "object": "infections",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Month",
        "HAI",
        "PatientDays"
      ],
      "rows": 41,
      "table": true,
      "tojson": true
    },
    {
      "name": "losmcmc",
      "title": "Markov Chain Monte Carlo estimates of hospital length of stay from the hosprog data frame",
      "object": "losmcmc",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "unemployment",
      "title": "USA's unemployment rate between 1929 and 2024",
      "object": "unemployment",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Year",
        "rate",
        "event",
        "year",
        "usa"
      ],
      "rows": 96,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "alpha",
      "title": "Calculates Cronbach's alpha on scale items",
      "topics": [
        "alpha"
      ]
    },
    {
      "page": "assess",
      "title": "Assess models with regression",
      "topics": [
        "assess"
      ]
    },
    {
      "page": "Bayes",
      "title": "Summarize Bayesian Markov Chain Monte Carlo (MCMC) object",
      "topics": [
        "Bayes"
      ]
    },
    {
      "page": "cas",
      "title": "Patient survey data",
      "topics": [
        "cas"
      ]
    },
    {
      "page": "co2mcmc",
      "title": "Markov Chain Monte Carlo linear regression estimates of plant's CO2 uptake regressed on ambient carbon dioxide concentrations",
      "topics": [
        "co2mcmc"
      ]
    },
    {
      "page": "co2multi",
      "title": "Bayes class object with summarized Markov Chain Monte Carlo estimates of plant's CO2 uptake as a binary variable that is above or below the median level",
      "topics": [
        "co2multi"
      ]
    },
    {
      "page": "control",
      "title": "Statistics for Shewhart control charts",
      "topics": [
        "control"
      ]
    },
    {
      "page": "decide",
      "title": "Statistics for Decision Curve Analysis and logistic regression model classification",
      "topics": [
        "decide"
      ]
    },
    {
      "page": "group",
      "title": "Group level confidence intervals and between-group variation",
      "topics": [
        "group"
      ]
    },
    {
      "page": "hosp1",
      "title": "Patient hospital program/intervention data, intervention group only",
      "topics": [
        "hosp1"
      ]
    },
    {
      "page": "hosprog",
      "title": "Patient hospital program/intervention data",
      "topics": [
        "hosprog"
      ]
    },
    {
      "page": "importance",
      "title": "Importance of variables based on partial chi-square statistic",
      "topics": [
        "importance"
      ]
    },
    {
      "page": "infections",
      "title": "Hospital acquired infections (HAI) during 41 months.",
      "topics": [
        "infections"
      ]
    },
    {
      "page": "interpret",
      "title": "Interpret model output",
      "topics": [
        "interpret"
      ]
    },
    {
      "page": "itsEffect",
      "title": "Interrupted time series analysis effects",
      "topics": [
        "itsEffect"
      ]
    },
    {
      "page": "losmcmc",
      "title": "Markov Chain Monte Carlo estimates of hospital length of stay from the hosprog data frame",
      "topics": [
        "losmcmc"
      ]
    },
    {
      "page": "plot.assess",
      "title": "Prediction plot of treatment and control groups for DID and ITS models",
      "topics": [
        "plot.assess"
      ]
    },
    {
      "page": "plot.Bayes",
      "title": "Bayesian plots for various analyses",
      "topics": [
        "plot.Bayes"
      ]
    },
    {
      "page": "plot.control",
      "title": "Shewhart control charts",
      "topics": [
        "plot.control"
      ]
    },
    {
      "page": "plot.decide",
      "title": "Decision Curve Analysis plots and regression model classification graphs on sensitivity and specificity",
      "topics": [
        "plot.decide"
      ]
    },
    {
      "page": "plot.group",
      "title": "Confidence interval graphs for group class objects",
      "topics": [
        "plot.group"
      ]
    },
    {
      "page": "plot.importance",
      "title": "Plot of variable importance ranked by partial chi-square statistic",
      "topics": [
        "plot.importance"
      ]
    },
    {
      "page": "print.alpha",
      "title": "Print alpha results",
      "topics": [
        "print.alpha"
      ]
    },
    {
      "page": "print.interpret",
      "title": "Print interpret object",
      "topics": [
        "print.interpret"
      ]
    },
    {
      "page": "unemployment",
      "title": "USA's unemployment rate between 1929 and 2024",
      "topics": [
        "unemployment"
      ]
    }
  ],
  "_pkglogo": "https://github.com/szuniga07/ham/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/szuniga07/ham/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "Bayes.Rmd",
      "filename": "Bayes.html",
      "title": "Bayes",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "Bayes()",
        "plot.Bayes()",
        "2. Diagnostics: 'dxa', 'dxd', 'dxg', 'dxt'",
        "3. Posterior summary: 'post'",
        "4a. Posterior Predictive Check: 'check'",
        "4b. Checking the regression trend line: 'check'",
        "5. Hierarchical or Multilevel Model summary: 'multi'",
        "6. Target setting: 'target'",
        "7. Gelamn's R^2: 'r2'"
      ],
      "created": "2026-03-13 05:16:47",
      "modified": "2026-03-19 19:19:47",
      "commits": 5
    },
    {
      "source": "control.Rmd",
      "filename": "control.html",
      "title": "control",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "2. $\\bar{X}$ charts",
        "3. p-chart",
        "4. u-chart"
      ],
      "created": "2026-03-14 04:25:45",
      "modified": "2026-03-19 01:26:40",
      "commits": 3
    },
    {
      "source": "decide.Rmd",
      "filename": "decide.html",
      "title": "decide",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "1. Model classification",
        "2. Decision Curve Analysis: Net Benefit",
        "3. Decision Curve Analysis (DCA): Interventions Saved"
      ],
      "created": "2026-03-14 04:25:45",
      "modified": "2026-03-19 01:26:40",
      "commits": 2
    },
    {
      "source": "ham-package.Rmd",
      "filename": "ham-package.html",
      "title": "ham-package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Healthcare Analysis Methods (ham)",
        "1. Introduction",
        "2. Descriptive and inferential statistics",
        "Group level 95% confidence intervals over 12 months (t distribution)",
        "Rolling 6-month averages by quartiles of age (Q1 - Q4)",
        "Graph the results",
        "Between-group variance and within-group clustering",
        "Graph the confidence interval trend results",
        "3. Linear and logistic regression",
        "OLS or linear regression",
        "ham provides coefficient interpretations with interpret()",
        "OLS top-coding and propensity scores",
        "model results",
        "importance",
        "Graph importance",
        "4. Differences-in-Differences",
        "DID model for length of stay using assess()",
        "Code to view DID model results",
        "Code to get the coefficient interpretations",
        "View a partial prediction plot",
        "View DID 30-day readmissions results",
        "5. Interrupted Time Series",
        "ITS model 1",
        "View ITS model 1 results",
        "interpret coefficients",
        "Graph ITS model 1",
        "ITS model 2",
        "View ITS model 2 results",
        "ITS model 3",
        "View ITS model 3 results",
        "ITS model 4",
        "View ITS model 4 results",
        "ITS model 5",
        "Graph ITS model 5 results",
        "An example of calculating Cronbach's alpha:",
        "Interpret Cronbach's alpha:",
        "7. Discussion",
        "8. References"
      ],
      "created": "2025-10-25 23:19:39",
      "modified": "2026-03-13 05:16:47",
      "commits": 10
    }
  ],
  "_score": 5.878521795501207,
  "_indexed": true,
  "_nocasepkg": "ham",
  "_universes": [
    "szuniga07"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0.9000",
      "date": "2026-06-09T07:50:21.000Z",
      "distro": "noble",
      "commit": "55ea168037c24a912ddba126239ab8eb2c979d87",
      "fileid": "7bdd52c3b0a294cc4c9d887edf8c81042143c30d0a5a8fa06db6ed1480b1da22",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0.9000",
      "date": "2026-06-09T07:50:16.000Z",
      "distro": "noble",
      "commit": "55ea168037c24a912ddba126239ab8eb2c979d87",
      "fileid": "1b81be602833f2a6ecccc37755bdff12c70de02e1ea4286fbe99d64258084dc5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0.9000",
      "date": "2026-06-09T07:50:24.000Z",
      "commit": "55ea168037c24a912ddba126239ab8eb2c979d87",
      "fileid": "3ddd82d6f222ad69fe42cc1db995eecea9efcc8d27b6a43fe91eef47d4f141fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0.9000",
      "date": "2026-06-09T07:52:47.000Z",
      "commit": "55ea168037c24a912ddba126239ab8eb2c979d87",
      "fileid": "c8d8edd8b52cec45e5b21e9d7e6799054f5cf9a547b50109408524b4b8c38daf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0.9000",
      "date": "2026-06-09T07:50:08.000Z",
      "commit": "55ea168037c24a912ddba126239ab8eb2c979d87",
      "fileid": "813a455e5380effffe3443ecd9a8f2f6cb0035e961e1499a1fb3bfb76d661e1b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.0.9000",
      "date": "2026-06-09T07:49:41.000Z",
      "commit": "55ea168037c24a912ddba126239ab8eb2c979d87",
      "fileid": "f880204f7ac13dcd108e89b083bf2fda46ab8869c8fc36bf97fdbbfb428bc1fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.0.9000",
      "date": "2026-06-09T07:49:36.000Z",
      "commit": "55ea168037c24a912ddba126239ab8eb2c979d87",
      "fileid": "131f217fcbe96ee8e613ddf7b423f7408afa182ac353195e82ebf019f1cf7359",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.0.9000",
      "date": "2026-06-09T07:49:20.000Z",
      "commit": "55ea168037c24a912ddba126239ab8eb2c979d87",
      "fileid": "999aa5fcbcd1740a3b8a0057fa40d02341b35e1403e81d86a228ee393259ca02",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/szuniga07/actions/runs/27191599776"
    }
  ]
}