Estimating Marginal Effects with Prognostic Covariate Adjustment
Overview
Conduct power analyses and inference of marginal effects. Uses plug-in estimation and influence functions to perform robust inference, optionally leveraging historical data to increase precision with prognostic covariate adjustment. The methods are described in Højbjerre-Frandsen et al. (2025) doi:10.48550/arXiv.2503.22284.
- Added functions
repeat_power_marginaleffect()andrepeat_power_linear()along with
plotting methods for the resulting objects to easily create data and plot power curves
from a range of sample sizes and models (#72).
- Fixed print method for
rctglm()andrctglm_with_prognosticscore()correctly
say "active" for the counterfactual mean estimate for group A=1 (#67).
- Added a
predictmethod for objects of classrctglm. - Added attributes with information about assumptions for the power calculation to output
of power_xx functions.
From NEWS.md in the release
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘options.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTE2026-07-18
- ERROR10 OK, 2 NOTE, 1 ERROR2026-07-15
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 13 (1 internal)includes a package overview page
- Examples that run
- 91%10 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 90%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 22
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/novonordisk-opensource/postcard on 2026-10-18.
GitHub Pages site last deployed 2026-10-16
pkgdown site last built 2026-07-15
Show all practicesHide 2 practices
Dependencies
Installing postcard adds 102 packages (48 with compiled code, 78 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Package metadata
- First published
- 2025-04-08
- Total releases
- 3 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 173 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("postcard")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.