{
  "_id": "6aaf8d033d719c1f8407ecd7",
  "Package": "beeca",
  "Title": "Binary Endpoint Estimation with Covariate Adjustment",
  "Version": "0.2.0",
  "Authors@R": "c(person(given = \"Alex\",\nfamily = \"Przybylski\",\nemail = \"alexander.przybylski@novartis.com\",\nrole = c(\"cre\", \"aut\")\n),\nperson(given = \"Mark\",\nfamily = \"Baillie\",\nemail = \"mark.baillie@novartis.com\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0002-5618-0667\")\n),\nperson(given = \"Craig\",\nfamily = \"Wang\",\nemail = \"craig.wang@novartis.com\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-1804-2463\")\n),\nperson(given = \"Dominic\",\nfamily = \"Magirr\",\nemail = \"dominic.magirr@novartis.com\",\nrole = c(\"aut\")\n))",
  "Description": "Performs estimation of marginal treatment effects for\nbinary outcomes when using logistic regression working models\nwith covariate adjustment (see discussions in Magirr et al\n(2024) <https://osf.io/9mp58/>). Implements the variance\nestimators of Ge et al (2011) <doi:10.1177/009286151104500409>\nand Ye et al (2023) <doi:10.1080/24754269.2023.2205802>.",
  "Maintainer": "Alex Przybylski <alexander.przybylski@novartis.com>",
  "License": "LGPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "URL": "https://openpharma.github.io/beeca/",
  "BugReports": "https://github.com/openpharma/beeca/issues",
  "Repository": "https://openpharma.r-universe.dev",
  "Date/Publication": "2024-11-12 12:44:59 UTC",
  "RemoteUrl": "https://github.com/openpharma/beeca",
  "RemoteRef": "HEAD",
  "RemoteSha": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-20 07:33:00 UTC",
    "User": "root"
  },
  "Author": "Alex Przybylski [cre, aut],\nMark Baillie [aut] (ORCID: <https://orcid.org/0000-0002-5618-0667>),\nCraig Wang [aut] (ORCID: <https://orcid.org/0000-0003-1804-2463>),\nDominic Magirr [aut]",
  "_user": "openpharma",
  "_type": "src",
  "_file": "beeca_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/7be4fe63aa8d4341eb8304fa9e9349d356cbcd5697eb03bb1d72614d82065a3d",
  "_filesize": 210696,
  "_sha256": "7be4fe63aa8d4341eb8304fa9e9349d356cbcd5697eb03bb1d72614d82065a3d",
  "_expires": "2026-12-29T07:36:33.000Z",
  "_created": "2026-09-20T07:33:00.000Z",
  "_published": "2026-09-20T07:36:35.564Z",
  "_jobs": [
    {
      "job": 106042215440,
      "time": 171,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10601691065"
    },
    {
      "job": 106042215396,
      "time": 143,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10600976422"
    },
    {
      "job": 106042215437,
      "time": 110,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10600787476"
    },
    {
      "job": 106042215504,
      "time": 118,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10601231049"
    },
    {
      "job": 106041735551,
      "time": 223,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10601036885"
    },
    {
      "job": 106042215426,
      "time": 152,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10601136291"
    },
    {
      "job": 106042215414,
      "time": 100,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10600636933"
    },
    {
      "job": 106042215434,
      "time": 92,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10600631788"
    },
    {
      "job": 106042215487,
      "time": 80,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10600976365"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618",
  "_status": "success",
  "_upstream": "https://github.com/openpharma/beeca",
  "_commit": {
    "id": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
    "author": "przybal2 <137296503+przybal2@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "update docs for multiarm extension (#22)\n\n* update docs for multiarm extension\r\n\r\n* remove codecov gha job",
    "time": 1731415499
  },
  "_maintainer": {
    "name": "Alex Przybylski",
    "email": "alexander.przybylski@novartis.com",
    "login": "przybal2",
    "description": "",
    "uuid": 137296503
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "marginaleffects",
      "role": "Suggests"
    },
    {
      "package": "margins",
      "role": "Suggests"
    },
    {
      "package": "RobinCar",
      "version": ">= 0.3.0",
      "role": "Suggests"
    }
  ],
  "_owner": "openpharma",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "ard",
    "covariate-adjustment",
    "delta-method",
    "marginal-effects",
    "marginal-estimand"
  ],
  "_stars": 7,
  "_contributors": [
    {
      "user": "przybal2",
      "count": 17,
      "uuid": 137296503
    },
    {
      "user": "bailliem",
      "count": 5,
      "uuid": 19621679
    },
    {
      "user": "olivroy",
      "count": 1,
      "uuid": 52606734
    }
  ],
  "_userbio": {
    "uuid": 8436743,
    "type": "organization",
    "name": "openpharma",
    "followers": 265,
    "description": "Further precompetitive collaboration in life sciences"
  },
  "_downloads": {
    "count": 414,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/beeca"
  },
  "_devurl": "https://github.com/openpharma/beeca",
  "_pkgdown": "https://openpharma.github.io/beeca/",
  "_searchresults": 10,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/beeca.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/openpharma/beeca",
  "_realowner": "openpharma",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.3",
      "date": "2024-06-18"
    },
    {
      "version": "0.2.0",
      "date": "2024-11-14"
    }
  ],
  "_exports": [
    "apply_contrast",
    "average_predictions",
    "estimate_varcov",
    "get_marginal_effect",
    "predict_counterfactuals",
    "sanitize_model"
  ],
  "_datasets": [
    {
      "name": "ge_macro_trial01",
      "title": "Output from the Ge et al (2011) SAS macro applied to the trial01 dataset",
      "object": "ge_macro_trial01",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "diff",
        "se",
        "pt",
        "pC",
        "lower",
        "upper"
      ],
      "rows": 1,
      "table": true,
      "tojson": true
    },
    {
      "name": "margins_trial01",
      "title": "Output from the Margins SAS macro applied to the trial01 dataset",
      "object": "margins_trial01",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Estimate",
        "ChiSq",
        "Row",
        "StdErr",
        "Lower",
        "Upper",
        "Contrast",
        "df",
        "Pr",
        "Alpha",
        "label"
      ],
      "rows": 1,
      "table": true,
      "tojson": true
    },
    {
      "name": "trial01",
      "title": "Example trial dataset 01",
      "object": "trial01",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "usubjid",
        "aval",
        "trtp",
        "bl_cov",
        "bl_cov_c",
        "region_2",
        "region_3",
        "region_4",
        "region_5"
      ],
      "rows": 268,
      "table": true,
      "tojson": true
    },
    {
      "name": "trial02_cdisc",
      "title": "Example CDISC Clinical Trial Dataset in ADaM Format",
      "object": "trial02_cdisc",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "USUBJID",
        "PARAM",
        "AGE",
        "AGEGR1",
        "AGEGR1N",
        "RACE",
        "RACEN",
        "SEX",
        "TRTP",
        "TRTPN",
        "AVAL",
        "AVALC",
        "FASFL"
      ],
      "rows": 254,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "apply_contrast",
      "title": "Apply contrast to calculate marginal estimate of treatment effect and corresponding standard error",
      "topics": [
        "apply_contrast"
      ]
    },
    {
      "page": "average_predictions",
      "title": "Average over counterfactual predictions",
      "topics": [
        "average_predictions"
      ]
    },
    {
      "page": "estimate_varcov",
      "title": "Estimate variance-covariance matrix for marginal estimand based on GLM model",
      "topics": [
        "estimate_varcov"
      ]
    },
    {
      "page": "ge_macro_trial01",
      "title": "Output from the Ge et al (2011) SAS macro applied to the trial01 dataset",
      "topics": [
        "ge_macro_trial01"
      ]
    },
    {
      "page": "get_marginal_effect",
      "title": "Estimate marginal treatment effects using a GLM working model",
      "topics": [
        "get_marginal_effect"
      ]
    },
    {
      "page": "margins_trial01",
      "title": "Output from the Margins SAS macro applied to the trial01 dataset",
      "topics": [
        "margins_trial01"
      ]
    },
    {
      "page": "predict_counterfactuals",
      "title": "Predict counterfactual outcomes in GLM models",
      "topics": [
        "predict_counterfactuals"
      ]
    },
    {
      "page": "trial01",
      "title": "Example trial dataset 01",
      "topics": [
        "trial01"
      ]
    },
    {
      "page": "trial02_cdisc",
      "title": "Example CDISC Clinical Trial Dataset in ADaM Format",
      "topics": [
        "trial02_cdisc"
      ]
    }
  ],
  "_readme": "https://github.com/openpharma/beeca/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "dplyr",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "R6",
    "rlang",
    "sandwich",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "estimand_and_implementations.Rmd",
      "filename": "estimand_and_implementations.html",
      "title": "Introduction to estimating a marginal estimand with beeca",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "General concepts",
        "What is an average treatment effect?",
        "How to estimate \"unconditional / marginal\" average treatment effect?",
        "How to estimate the variance of the g-computation estimator of average treatment effect?",
        "Analysis example",
        "Comparing different implementations",
        "Ge et al (2011)",
        "Ye et al (2023)",
        "References"
      ],
      "created": "2024-06-05 12:20:53",
      "modified": "2024-11-12 12:44:59",
      "commits": 6
    }
  ],
  "_score": 5.3222192947339195,
  "_indexed": true,
  "_nocasepkg": "beeca",
  "_universes": [
    "openpharma",
    "przybal2"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-09-20T07:35:47.000Z",
      "distro": "resolute",
      "commit": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
      "fileid": "https://r2.ropensci.org/822e72f49c9bb37cac9e3c4d8fe9dadd1d2a4389f4cd4962499852cae833a247",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-09-20T07:35:27.000Z",
      "distro": "resolute",
      "commit": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
      "fileid": "https://r2.ropensci.org/9d96f5cd0df1487469c1297122c65a8d307ee6d9ac6811738776b26c2c35c241",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-09-20T07:34:56.000Z",
      "commit": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
      "fileid": "https://r2.ropensci.org/1f96b40b6c96d4b658988561919b00763d7498430fbcf5cb5e4f0b0b3cde6a4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-09-20T07:35:00.000Z",
      "commit": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
      "fileid": "https://r2.ropensci.org/d6fe06f346fde7540d96a609105471a6221862c92660954575e42e749d135002",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-09-20T07:35:49.000Z",
      "commit": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
      "fileid": "https://r2.ropensci.org/6b30eeaadf38cc36b3f05395dc0c599d629c10b927176858257dfce68a16e455",
      "status": "success",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-09-20T07:34:26.000Z",
      "commit": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
      "fileid": "https://r2.ropensci.org/2cee32566d12f158267d2d134d600083ed0770f6c4657dad54fadff1fea0b088",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-09-20T07:34:29.000Z",
      "commit": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
      "fileid": "https://r2.ropensci.org/00dd7875fb37e6442210cbca1355f640287716ef9cfcdc9d18d838b53562899d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-09-20T07:34:14.000Z",
      "commit": "4b72c14afc83ffc36eafa3c94b98ebc3d116fcbc",
      "fileid": "https://r2.ropensci.org/f6e3027803160dcc0b639f425efd1af465558686972c56f8629ca6efb1090dd9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/35496997618"
    }
  ]
}