{
  "_id": "6a1f20a2b401979e73420404",
  "Type": "Package",
  "Package": "postcard",
  "Title": "Estimating Marginal Effects with Prognostic Covariate Adjustment",
  "Version": "1.1.0",
  "Authors@R": "c(\nperson(\"Mathias Lerbech\", \"Jeppesen\", ,\n\"mathiasljeppesen@outlook.com\", role = c(\"aut\", \"cre\")),\nperson(\"Emilie\", \"Hojbjerre-Frandsen\", ,\n\"ehfd@novonordisk.com\", role = \"aut\"),\nperson(\"Novo Nordisk A/S\", role = \"cph\")\n)",
  "Description": "Conduct power analyses and inference of marginal effects.\nUses plug-in estimation and influence functions to perform\nrobust inference, optionally leveraging historical data to\nincrease precision with prognostic covariate adjustment. The\nmethods are described in Højbjerre-Frandsen et al. (2025)\n<doi:10.48550/arXiv.2503.22284>.",
  "License": "MIT + file LICENSE",
  "URL": "https://novonordisk-opensource.github.io/postcard/,\nhttps://github.com/NovoNordisk-OpenSource/postcard",
  "BugReports": "https://github.com/NovoNordisk-OpenSource/postcard/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://novonordisk-opensource.r-universe.dev",
  "Date/Publication": "2025-09-17 12:14:13 UTC",
  "RemoteUrl": "https://github.com/NovoNordisk-OpenSource/postcard",
  "RemoteRef": "HEAD",
  "RemoteSha": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-16 07:50:47 UTC",
    "User": "root"
  },
  "Author": "Mathias Lerbech Jeppesen [aut, cre],\nEmilie Hojbjerre-Frandsen [aut],\nNovo Nordisk A/S [cph]",
  "Maintainer": "Mathias Lerbech Jeppesen <mathiasljeppesen@outlook.com>",
  "MD5sum": "cf56527e1688e8475c2376cd0ed549cb",
  "_user": "novonordisk-opensource",
  "_type": "src",
  "_file": "postcard_1.1.0.tar.gz",
  "_fileid": "0e62a6ca9e672686cf6e540940b5b8a05a3345f2d4a76ba132871f0e2831e1ae",
  "_filesize": 663405,
  "_sha256": "0e62a6ca9e672686cf6e540940b5b8a05a3345f2d4a76ba132871f0e2831e1ae",
  "_created": "2026-05-16T07:50:47.000Z",
  "_published": "2026-06-02T18:27:46.762Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79143143439,
      "time": 186,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031748609"
    },
    {
      "job": 79143143221,
      "time": 204,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031750340"
    },
    {
      "job": 79143143598,
      "time": 129,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031742694"
    },
    {
      "job": 79143143394,
      "time": 173,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031747165"
    },
    {
      "job": 79143142903,
      "time": 320,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031729254"
    },
    {
      "job": 79143142664,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366438865"
    },
    {
      "job": 79143143248,
      "time": 174,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031747400"
    },
    {
      "job": 79143144157,
      "time": 149,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031744963"
    },
    {
      "job": 79143144297,
      "time": 150,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031744887"
    }
  ],
  "_buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/NovoNordisk-OpenSource/postcard",
  "_commit": {
    "id": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
    "author": "Mathias Lerbech Jeppesen <57991840+mathiaslj@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #75 from NovoNordisk-OpenSource/74/release-110\n\nRelease postcard version 1.1.0 to CRAN",
    "time": 1758111253
  },
  "_maintainer": {
    "name": "Mathias Lerbech Jeppesen",
    "email": "mathiasljeppesen@outlook.com",
    "login": "mathiaslj",
    "uuid": 57991840
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "Deriv",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "earth",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "gggrid",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "options",
      "role": "Imports"
    },
    {
      "package": "parsnip",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rsample",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tune",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "workflowsets",
      "role": "Imports"
    },
    {
      "package": "xgboost",
      "role": "Imports"
    },
    {
      "package": "yardstick",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "LiblineaR",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "novonordisk-opensource",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-21",
      "n": 3
    },
    {
      "week": "2025-22",
      "n": 2
    },
    {
      "week": "2025-23",
      "n": 1
    },
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-28",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.0.1",
      "date": "2025-07-01"
    },
    {
      "name": "v1.1.0",
      "date": "2025-09-17"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "mathiaslj",
      "count": 446,
      "uuid": 57991840
    },
    {
      "user": "nnehfd",
      "count": 25,
      "uuid": 132352413
    }
  ],
  "_userbio": {
    "uuid": 129066790,
    "type": "organization",
    "name": "NovoNordisk-OpenSource"
  },
  "_downloads": {
    "count": 187,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/postcard"
  },
  "_devurl": "https://github.com/novonordisk-opensource/postcard",
  "_pkgdown": "https://novonordisk-opensource.github.io/postcard/",
  "_searchresults": 10,
  "_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/postcard.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/novonordisk-opensource/postcard",
  "_realowner": "novonordisk-opensource",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-04-08"
    },
    {
      "version": "1.0.1",
      "date": "2025-07-01"
    },
    {
      "version": "1.1.0",
      "date": "2025-09-17"
    }
  ],
  "_exports": [
    "default_learners",
    "est",
    "estimand",
    "fit_best_learner",
    "glm_data",
    "power_gs",
    "power_marginaleffect",
    "power_nc",
    "prog",
    "rctglm",
    "rctglm_with_prognosticscore",
    "repeat_power_linear",
    "repeat_power_marginaleffect",
    "samplesize_gs",
    "variance_ancova"
  ],
  "_help": [
    {
      "page": "default_learners",
      "title": "Creates a list of learners",
      "topics": [
        "default_learners"
      ]
    },
    {
      "page": "fit_best_learner",
      "title": "Find the best learner in terms of RMSE among specified learners using cross validation",
      "topics": [
        "fit_best_learner"
      ]
    },
    {
      "page": "glm_data",
      "title": "Generate data simulated from a GLM",
      "topics": [
        "glm_data"
      ]
    },
    {
      "page": "options",
      "title": "postcard Options",
      "topics": [
        "options"
      ]
    },
    {
      "page": "power_linear",
      "title": "Power and sample size estimation for linear models",
      "topics": [
        "power_gs",
        "power_linear",
        "power_nc",
        "samplesize_gs",
        "variance_ancova"
      ]
    },
    {
      "page": "power_marginaleffect",
      "title": "Power approximation for estimating marginal effects in GLMs",
      "topics": [
        "power_marginaleffect"
      ]
    },
    {
      "page": "prog",
      "title": "Extract information about the fitted prognostic model",
      "topics": [
        "prog",
        "prog.rctglm_prog"
      ]
    },
    {
      "page": "rctglm",
      "title": "Fit GLM and find any estimand (marginal effect) using plug-in estimation with variance estimation using influence functions",
      "topics": [
        "rctglm"
      ]
    },
    {
      "page": "rctglm_methods",
      "title": "Methods for objects of class 'rctglm'",
      "topics": [
        "coef.rctglm",
        "est",
        "estimand",
        "estimand.rctglm",
        "predict.rctglm",
        "print.rctglm",
        "rctglm_methods"
      ]
    },
    {
      "page": "rctglm_with_prognosticscore",
      "title": "Use prognostic covariate adjustment when fitting an rctglm",
      "topics": [
        "rctglm_with_prognosticscore"
      ]
    },
    {
      "page": "repeat_power_linear",
      "title": "Create data and plot power curves calculated using functions in 'power_linear()' for a list of formulas/models",
      "topics": [
        "plot.postcard_rpl",
        "repeat_power_linear"
      ]
    },
    {
      "page": "repeat_power_marginaleffect",
      "title": "Create data and plot power curves calculated using 'power_marginaleffect()' for a list of models",
      "topics": [
        "plot.postcard_rpm",
        "repeat_power_marginaleffect"
      ]
    }
  ],
  "_pkglogo": "https://github.com/NovoNordisk-OpenSource/postcard/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/NovoNordisk-OpenSource/postcard/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bslib",
    "cachem",
    "class",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "data.table",
    "Deriv",
    "diagram",
    "dials",
    "DiceDesign",
    "digest",
    "dplyr",
    "earth",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "Formula",
    "fs",
    "furrr",
    "future",
    "future.apply",
    "GauPro",
    "generics",
    "gggrid",
    "ggplot2",
    "globals",
    "glue",
    "gower",
    "gtable",
    "hardhat",
    "highr",
    "htmltools",
    "ipred",
    "isoband",
    "jquerylib",
    "jsonlite",
    "KernSmooth",
    "knitr",
    "labeling",
    "lattice",
    "lava",
    "lbfgs",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "mixopt",
    "modelenv",
    "nnet",
    "numDeriv",
    "options",
    "parallelly",
    "parsnip",
    "pillar",
    "pkgconfig",
    "plotmo",
    "plotrix",
    "prettyunits",
    "prodlim",
    "progressr",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "recipes",
    "rlang",
    "rmarkdown",
    "rpart",
    "rsample",
    "S7",
    "sass",
    "scales",
    "sfd",
    "shape",
    "slider",
    "sparsevctrs",
    "splitfngr",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "tailor",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "tinytex",
    "tune",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "warp",
    "withr",
    "workflows",
    "workflowsets",
    "xfun",
    "xgboost",
    "yaml",
    "yardstick"
  ],
  "_vignettes": [
    {
      "source": "model-fit.Rmd",
      "filename": "model-fit.html",
      "title": "Controlling behavior of model fitting functions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Generating some data to run examples",
        "Controlling verbosity",
        "Specifying the estimand",
        "Built-in estimands - average treatment effect and rate ratio",
        "Specifying any estimand",
        "Variance estimation using cross validation",
        "Prognostic covariate adjustment",
        "Specifying learners",
        "Default learners",
        "Creating own list of learners",
        "Inspecting the prognostic model"
      ],
      "created": "2025-03-25 22:34:09",
      "modified": "2025-09-15 12:37:51",
      "commits": 7
    },
    {
      "source": "postcard.Rmd",
      "filename": "postcard.html",
      "title": "Introduction to postcard",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Plug-in estimation of marginal effects and variance estimation using influence functions",
        "Simulating data for exploratory analyses",
        "Fitting rctglm() without prognostic covariate adjustment",
        "Using prognostic covariate adjustment",
        "Investigating the prognostic model",
        "Prospective power approximation",
        "For marginal effects",
        "For linear models",
        "Creating a plot of prospective power curves",
        "Using repeat_power_marginaleffect() and plotting the results"
      ],
      "created": "2025-03-28 04:15:38",
      "modified": "2025-09-15 12:37:51",
      "commits": 7
    },
    {
      "source": "prospective-power.Rmd",
      "filename": "prospective-power.html",
      "title": "Prospective Power Estimation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Estimating the power for marginal effects",
        "Simulating some data",
        "Controlling assumptions"
      ],
      "created": "2025-03-25 22:34:09",
      "modified": "2025-09-15 12:37:51",
      "commits": 10
    }
  ],
  "_score": 5.021189299069938,
  "_indexed": true,
  "_nocasepkg": "postcard",
  "_universes": [
    "novonordisk-opensource",
    "mathiaslj"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-16T07:53:04.000Z",
      "distro": "noble",
      "commit": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
      "fileid": "ef16a9951a6ab93e7146fb0b9a8f2479d1fd8007b15c6d590241bdc9d82dec16",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-16T07:53:18.000Z",
      "distro": "noble",
      "commit": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
      "fileid": "67b6f88f1bb13a80f4ef4e5d7840d216e6a821934cc570399524f0e8a0c82a35",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-16T07:52:23.000Z",
      "commit": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
      "fileid": "2a231389aa90b474ab7747c5da29f4eda9663d74e5854d8dec73054798084912",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-16T07:52:52.000Z",
      "commit": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
      "fileid": "2f4374d2d133df8bab8374a7528ff6ac8ddeb3dd3c6e4a389c1665edce841450",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-16T07:52:38.000Z",
      "commit": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
      "fileid": "54c798ebb404ee2c04a9c6e6953cc4b737146d24b976ee165efcad77522c71c8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-16T07:52:09.000Z",
      "commit": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
      "fileid": "a740951bbc600990d3a8cc0fbf980ddbeb94fa1c89a34e9495e2ac1b29b3a152",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-16T07:52:09.000Z",
      "commit": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
      "fileid": "76b9e7e146e27ebaafa7fbf09060ed67c25f9fdd798abd5aeccd3d2db0aa8613",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-06-02T18:27:23.000Z",
      "commit": "d1360a32393cad4e9f36f8f2f3120f3903d1d323",
      "fileid": "66325a1eadc1d77307f18c18315e212f6c6d1be98c28690c06fb6646a40be92d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/novonordisk-opensource/actions/runs/25956496131"
    }
  ]
}