{
  "_id": "6a17dcc2acfb0bcc41d9c686",
  "Package": "oddsratio",
  "Title": "Odds Ratio Calculation for GAM(M)s & GLM(M)s",
  "Version": "2.0.2.9000",
  "Authors@R": "person(\"Patrick\", \"Schratz\", , \"patrick.schratz@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-0748-6624\"))",
  "Description": "Simplified odds ratio calculation of GAM(M)s & GLM(M)s.\nProvides structured output (data frame) of all predictors and\ntheir corresponding odds ratios and confident intervals for\nfurther analyses.  It helps to avoid false references of\npredictors and increments by specifying these parameters in a\nlist instead of using 'exp(coef(model))' (standard approach of\nodds ratio calculation for GLMs) which just returns a plain\nnumeric output.  For GAM(M)s, odds ratio calculation is highly\nsimplified with this package since it takes care of the\nmultiple 'predict()' calls of the chosen predictor while\nholding other predictors constant. Also, this package allows\nodds ratio calculation of percentage steps across the whole\npredictor distribution range for GAM(M)s.  In both cases,\nconfident intervals are returned additionally. Calculated odds\nratio of GAM(M)s can be inserted into the smooth function plot.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/pat-s/oddsratio",
  "BugReports": "https://github.com/pat-s/oddsratio/issues",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Repository": "https://pat-s.r-universe.dev",
  "Date/Publication": "2025-10-17 09:08:17 UTC",
  "RemoteUrl": "https://github.com/pat-s/oddsratio",
  "RemoteRef": "HEAD",
  "RemoteSha": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-28 06:07:57 UTC",
    "User": "root"
  },
  "Author": "Patrick Schratz [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0748-6624>)",
  "Maintainer": "Patrick Schratz <patrick.schratz@gmail.com>",
  "MD5sum": "b04a52384b932ff7f8339652714c550d",
  "_user": "pat-s",
  "_type": "src",
  "_file": "oddsratio_2.0.2.9000.tar.gz",
  "_fileid": "e8739a99ff65f9c52914673a28f7c3e0b98c4a1bf5c47029b260d9d9de114c5f",
  "_filesize": 530367,
  "_sha256": "e8739a99ff65f9c52914673a28f7c3e0b98c4a1bf5c47029b260d9d9de114c5f",
  "_created": "2026-05-28T06:07:57.000Z",
  "_published": "2026-05-28T06:12:18.806Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78233753556,
      "time": 151,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7258888127"
    },
    {
      "job": 78233753566,
      "time": 146,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258887235"
    },
    {
      "job": 78233753543,
      "time": 199,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7258898302"
    },
    {
      "job": 78233753601,
      "time": 167,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258891203"
    },
    {
      "job": 78233416778,
      "time": 182,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258856495"
    },
    {
      "job": 78233753646,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258878875"
    },
    {
      "job": 78233753607,
      "time": 118,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7258882333"
    },
    {
      "job": 78233753553,
      "time": 113,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7258880316"
    },
    {
      "job": 78233753571,
      "time": 103,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258878384"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/pat-s/oddsratio",
  "_commit": {
    "id": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
    "author": "Patrick Schratz <patrick.schratz@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1760692097
  },
  "_maintainer": {
    "name": "Patrick Schratz",
    "email": "patrick.schratz@gmail.com",
    "login": "pat-s",
    "mastodon": "@pat_dev@social.linux.pizza",
    "bluesky": "@pat-dev.bsky.social",
    "description": "DevOps, FOSS, #rstats. codefloe.com founder. Public repos migrated to https://codefloe.com/pat-s",
    "uuid": 8430564,
    "orcid": "0000-0003-0748-6624"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.0.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "gam",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "pat-s",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-42",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "odds-ratio",
    "probability",
    "statistics"
  ],
  "_stars": 30,
  "_contributors": [
    {
      "user": "pat-s",
      "count": 443,
      "uuid": 8430564
    }
  ],
  "_userbio": {
    "uuid": 8430564,
    "type": "user",
    "name": "Patrick Schratz",
    "description": "DevOps, FOSS, #rstats. codefloe.com founder. Public repos migrated to https://codefloe.com/pat-s"
  },
  "_downloads": {
    "count": 569,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/oddsratio"
  },
  "_mentions": 8,
  "_devurl": "https://github.com/pat-s/oddsratio",
  "_searchresults": 104,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/oddsratio.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/pat-s/oddsratio",
  "_realowner": "pat-s",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2",
      "date": "2016-10-11"
    },
    {
      "version": "0.3.0",
      "date": "2016-10-27"
    },
    {
      "version": "0.3.1",
      "date": "2016-11-13"
    },
    {
      "version": "1.0.0",
      "date": "2017-06-12"
    },
    {
      "version": "1.0.2",
      "date": "2017-12-07"
    },
    {
      "version": "1.0.3",
      "date": "2018-07-25"
    },
    {
      "version": "2.0.0",
      "date": "2019-06-13"
    },
    {
      "version": "2.0.1",
      "date": "2020-05-24"
    },
    {
      "version": "2.0.2",
      "date": "2025-04-08"
    }
  ],
  "_exports": [
    "gam_to_df",
    "insert_or",
    "no_plot",
    "or_gam",
    "or_glm",
    "plot_gam"
  ],
  "_datasets": [
    {
      "name": "data_gam",
      "title": "data_gam",
      "object": "data_gam",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "x0",
        "x1",
        "x2",
        "x3",
        "f",
        "f0",
        "f1",
        "f2",
        "f3",
        "x4"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "data_glm",
      "title": "data_glm",
      "object": "data_glm",
      "class": [
        "data.frame"
      ],
      "fields": [
        "admit",
        "gre",
        "gpa",
        "rank"
      ],
      "rows": 400,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "insert_or",
      "title": "Insert odds ratios of GAM(M)s into smoothing function",
      "topics": [
        "insert_or"
      ]
    },
    {
      "page": "or_gam",
      "title": "Calculate Odds Ratios of Generalized Additive (Mixed) Models",
      "topics": [
        "or_gam"
      ]
    },
    {
      "page": "or_glm",
      "title": "Calculate Odds Ratios of Generalized Linear (Mixed) Models",
      "topics": [
        "or_glm"
      ]
    },
    {
      "page": "plot_gam",
      "title": "Plot GAM(M) Smoothing Function",
      "topics": [
        "plot_gam"
      ]
    }
  ],
  "_readme": "https://github.com/pat-s/oddsratio/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "Matrix",
    "mgcv",
    "nlme",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "oddsratio.Rmd",
      "filename": "oddsratio.html",
      "title": "Getting Started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Prepare Data",
        "GAM Example",
        "Calculating Odds Ratio for Static Increases of a Continuous Variable",
        "Odds ratio for Discrete Variables",
        "Odds ratio for Percentage increases of a Continuous Variables",
        "Plot GAM(M) Smoothing Functions",
        "Add Odds Ratio Information Into Smoothing Function Plot",
        "GLM Example",
        "Odds Ratio for Continuous Predictors"
      ],
      "created": "2019-06-13 15:34:05",
      "modified": "2021-12-05 08:34:13",
      "commits": 3
    }
  ],
  "_score": 7.87436583573005,
  "_indexed": true,
  "_nocasepkg": "oddsratio",
  "_universes": [
    "pat-s"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.2.9000",
      "date": "2026-05-28T06:10:07.000Z",
      "distro": "noble",
      "commit": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
      "fileid": "386f068ef0a54a4bff858a38f140b28593b8c8b9372588ad5370fae90f86af5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.2.9000",
      "date": "2026-05-28T06:10:04.000Z",
      "distro": "noble",
      "commit": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
      "fileid": "b536f5292170bf032de8c9c73d674f3490dd1b36dda4d836f0e904e202ec16a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.2.9000",
      "date": "2026-05-28T06:11:02.000Z",
      "commit": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
      "fileid": "fc7b986128a0e6123fe36755d6bc7e50b95bc3eb2548f38e308921c5ce20d7cd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.2.9000",
      "date": "2026-05-28T06:10:34.000Z",
      "commit": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
      "fileid": "82ceb40e8a38bb786d93ddbc87b89afe8d2780bea821fb3a34ffafb9918f86e8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.2.9000",
      "date": "2026-05-28T06:10:04.000Z",
      "commit": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
      "fileid": "237f91a6c12fc2bc584365b73f237a82525b792de8d1b5ed995391034f9c7d95",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.2.9000",
      "date": "2026-05-28T06:09:43.000Z",
      "commit": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
      "fileid": "3389e4decce59afd9c1dbdf536d6c3ee57d7c74582356e63673c05c176f4cfbf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.2.9000",
      "date": "2026-05-28T06:09:26.000Z",
      "commit": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
      "fileid": "bb55b86c62e8af94789f118706b261c73b54c39c2b730e9095f05000a58840d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.2.9000",
      "date": "2026-05-28T06:09:18.000Z",
      "commit": "23bb1ecbd9f4b268fe84bdcfba739166e3ad2dfa",
      "fileid": "f1f2f955238a4b8b07357c6e2e1926da93c410f5ca15b0683bf09ce80322aa22",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pat-s/actions/runs/26557823596"
    }
  ]
}