{
  "_id": "6a1696f7acfb0bcc41d7c007",
  "Package": "risks",
  "Title": "Estimate Risk Ratios and Risk Differences using Regression",
  "Version": "0.4.3",
  "Authors@R": "c(person(given = \"Konrad\",\nfamily = \"Stopsack\",\nrole = c(\"aut\", \"cre\", \"cph\"),\nemail = \"stopsack@post.harvard.edu\",\ncomment = c(ORCID = \"0000-0002-0722-1311\")),\nperson(given = \"Travis\",\nfamily = \"Gerke\",\nrole = c(\"aut\"),\nemail = \"tgerke@mail.harvard.edu\",\ncomment = c(ORCID = \"0000-0002-9500-8907\")))",
  "Description": "Risk ratios and risk differences are estimated using\nregression models that allow for binary, categorical, and\ncontinuous exposures and confounders. Implemented are marginal\nstandardization after fitting logistic models (g-computation)\nwith delta-method and bootstrap standard errors, Miettinen's\ncase-duplication approach (Schouten et al. 1993,\n<doi:10.1002/sim.4780121808>), log-binomial (Poisson) models\nwith empirical variance (Zou 2004, <doi:10.1093/aje/kwh090>),\nbinomial models with starting values from Poisson models\n(Spiegelman and Hertzmark 2005, <doi:10.1093/aje/kwi188>), and\nothers.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "URL": "https://stopsack.github.io/risks/",
  "BugReports": "https://github.com/stopsack/risks/issues",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://stopsack.r-universe.dev",
  "Date/Publication": "2025-06-01 14:33:18 UTC",
  "RemoteUrl": "https://github.com/stopsack/risks",
  "RemoteRef": "HEAD",
  "RemoteSha": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 06:56:30 UTC",
    "User": "root"
  },
  "Author": "Konrad Stopsack [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-0722-1311>),\nTravis Gerke [aut] (ORCID: <https://orcid.org/0000-0002-9500-8907>)",
  "Maintainer": "Konrad Stopsack <stopsack@post.harvard.edu>",
  "MD5sum": "083afbba68faf64c73365bbc9031de93",
  "_user": "stopsack",
  "_type": "src",
  "_file": "risks_0.4.3.tar.gz",
  "_fileid": "2c25eb932389fcf378e0c1f6caee322e4fb34e7fc57314e9fd7591dae64e21ce",
  "_filesize": 4632159,
  "_sha256": "2c25eb932389fcf378e0c1f6caee322e4fb34e7fc57314e9fd7591dae64e21ce",
  "_created": "2026-05-27T06:56:30.000Z",
  "_published": "2026-05-27T07:02:15.595Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78024000692,
      "time": 200,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7233904085"
    },
    {
      "job": 78024000685,
      "time": 198,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233903265"
    },
    {
      "job": 78024000689,
      "time": 173,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7233922244"
    },
    {
      "job": 78024000684,
      "time": 152,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233911599"
    },
    {
      "job": 78023393175,
      "time": 279,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233848300"
    },
    {
      "job": 78024000681,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233881895"
    },
    {
      "job": 78024000748,
      "time": 173,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7233897208"
    },
    {
      "job": 78024000735,
      "time": 202,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7233906237"
    },
    {
      "job": 78024000703,
      "time": 148,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233889792"
    }
  ],
  "_buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/stopsack/risks",
  "_commit": {
    "id": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
    "author": "Konrad H. Stopsack <35557324+stopsack@users.noreply.github.com>",
    "committer": "Konrad H. Stopsack <35557324+stopsack@users.noreply.github.com>",
    "message": "fulfill CRAN requirements for v0.4.3\n",
    "time": 1748788398
  },
  "_maintainer": {
    "name": "Konrad Stopsack",
    "email": "stopsack@post.harvard.edu",
    "orcid": "0000-0002-0722-1311"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "boot",
      "role": "Imports"
    },
    {
      "package": "bcaboot",
      "role": "Imports"
    },
    {
      "package": "broom",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "addreg",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "logbin",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "stopsack",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-22",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "binomial",
    "biostatistics",
    "epidemiology",
    "regression-models"
  ],
  "_stars": 8,
  "_contributors": [
    {
      "user": "stopsack",
      "count": 90,
      "uuid": 35557324
    },
    {
      "user": "tgerke",
      "count": 46,
      "uuid": 3831928
    }
  ],
  "_userbio": {
    "uuid": 35557324,
    "type": "user",
    "name": "Konrad H. Stopsack",
    "description": "Epidemiologist"
  },
  "_downloads": {
    "count": 745,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/risks"
  },
  "_devurl": "https://github.com/stopsack/risks",
  "_pkgdown": "https://stopsack.github.io/risks/",
  "_searchresults": 13,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/risks.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/stopsack/risks",
  "_realowner": "stopsack",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.2",
      "date": "2023-06-13"
    },
    {
      "version": "0.4.3",
      "date": "2025-05-30"
    }
  ],
  "_exports": [
    "conv.test",
    "riskdiff",
    "riskratio",
    "rr_rd_mantel_haenszel"
  ],
  "_datasets": [
    {
      "name": "breastcancer",
      "title": "Breast Cancer Data",
      "object": "breastcancer",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "death",
        "stage",
        "receptor"
      ],
      "rows": 192,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "breastcancer",
      "title": "Breast Cancer Data",
      "topics": [
        "breastcancer"
      ]
    },
    {
      "page": "confint.risks",
      "title": "Confidence Intervals for Model Parameters",
      "topics": [
        "confint.risks"
      ]
    },
    {
      "page": "is.risks",
      "title": "Check Risks Class",
      "topics": [
        "is.risks"
      ]
    },
    {
      "page": "print.risks",
      "title": "Print model",
      "topics": [
        "print.risks"
      ]
    },
    {
      "page": "print.summary.risks",
      "title": "Print model summary",
      "topics": [
        "print.summary.risks"
      ]
    },
    {
      "page": "riskratio",
      "title": "Fit risk ratio and risk difference models",
      "topics": [
        "riskdiff",
        "riskratio"
      ]
    },
    {
      "page": "risks",
      "title": "risks: Estimate risk ratios and risk differences using regression",
      "topics": [
        "risks-package",
        "risks"
      ]
    },
    {
      "page": "rr_rd_mantel_haenszel",
      "title": "Risk Ratios and Risk Differences from Mantel-Haenszel Estimators",
      "topics": [
        "rr_rd_mantel_haenszel"
      ]
    },
    {
      "page": "summary.duplicate",
      "title": "Summary for logistic model with case duplication and cluster-robust covariance",
      "topics": [
        "summary.duplicate"
      ]
    },
    {
      "page": "summary.margstd_boot",
      "title": "Summary for models using marginal standardization",
      "topics": [
        "summary.margstd_boot"
      ]
    },
    {
      "page": "summary.margstd_delta",
      "title": "Summary for models using marginal standardization with delta method SEs",
      "topics": [
        "summary.margstd_delta"
      ]
    },
    {
      "page": "summary.risks",
      "title": "Generate model summary",
      "topics": [
        "summary.risks"
      ]
    },
    {
      "page": "summary.robpoisson",
      "title": "Summary for Poisson model with robust covariance",
      "topics": [
        "summary.robpoisson"
      ]
    },
    {
      "page": "tidy.risks",
      "title": "Tidy model summaries for risks models",
      "topics": [
        "tidy.risks"
      ]
    }
  ],
  "_pkglogo": "https://github.com/stopsack/risks/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/stopsack/risks/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "bcaboot",
    "boot",
    "broom",
    "cli",
    "cpp11",
    "dplyr",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "sandwich",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "risks.Rmd",
      "filename": "risks.html",
      "title": "Introduction to the risks package: Get Started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "An example cohort study",
        "Adjusted risk ratios",
        "Adjusted risk differences",
        "Accessing model coefficients",
        "More post-estimation commands"
      ],
      "created": "2021-02-19 13:35:24",
      "modified": "2025-03-20 15:07:20",
      "commits": 5
    },
    {
      "source": "margstd.Rmd",
      "filename": "margstd.html",
      "title": "Marginal standardization",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The basics",
        "Choice of exposure variable",
        "Bootstrap confidence intervals",
        "Bootstrap repeats"
      ],
      "created": "2021-02-19 13:35:24",
      "modified": "2023-06-13 12:58:24",
      "commits": 6
    },
    {
      "source": "models.Rmd",
      "filename": "models.html",
      "title": "Models and model comparisons",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Implemented model types",
        "Model choice",
        "Model comparisons"
      ],
      "created": "2021-02-19 13:35:24",
      "modified": "2024-04-16 20:39:54",
      "commits": 7
    }
  ],
  "_score": 5.971275848738105,
  "_indexed": true,
  "_nocasepkg": "risks",
  "_universes": [
    "stopsack"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.3",
      "date": "2026-05-27T06:58:50.000Z",
      "distro": "noble",
      "commit": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
      "fileid": "d54041c9fa0a756b8b03cc1a30c1f8f7937cb7e945f4554ef39b484b88e33919",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.3",
      "date": "2026-05-27T06:58:49.000Z",
      "distro": "noble",
      "commit": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
      "fileid": "19d61da8a680c2aae8406f38a8e66717801fb9da9ac48cd45ca095a94166ec5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.3",
      "date": "2026-05-27T07:00:33.000Z",
      "commit": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
      "fileid": "3dd84efc94944cfdbb9500bae72ef7c82af259bb41e76b25a445e9103b543ab0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.3",
      "date": "2026-05-27T06:59:53.000Z",
      "commit": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
      "fileid": "d5354e018d66e776209d748c65726315de3572b7fe06a3d3d4e262751af76c5d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.3",
      "date": "2026-05-27T06:58:49.000Z",
      "commit": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
      "fileid": "18b05aa35823ede055324454edbc79a99f4ad0eb723b77ad560937c45c0bd31a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-05-27T06:58:05.000Z",
      "commit": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
      "fileid": "c4e00176977c35b41df655a04eae2b19fb266edff06e928e83904b2e4155fa2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-05-27T06:58:36.000Z",
      "commit": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
      "fileid": "97f630f44cd044b399998d81f4a3be09a587e13e7b069a29937631d061dda6a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-05-27T06:57:45.000Z",
      "commit": "54b5f463fd1e7dbcb545f6f5ed5e23a4b8f70af2",
      "fileid": "cc669bd1ab6f4a66e499b129afed376effa17616b0a0da36bd54505342f8729a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stopsack/actions/runs/26495720672"
    }
  ]
}