Skip to content

postcard

1.1.0Package record

Estimating Marginal Effects with Prognostic Covariate Adjustment

0packages depend
2.3Kdownloads / year
98.3%test coverage
11/13flavors OK

Overview

About

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.

Changes in 1.1.0
  • Added functions repeat_power_marginaleffect() and repeat_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() and rctglm_with_prognosticscore() correctly

say "active" for the counterfactual mean estimate for group A=1 (#67).

  • Added a predict method for objects of class rctglm.
  • Added attributes with information about assumptions for the power calculation to output

of power_xx functions.

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
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.

CRAN check page ↗

Slowest check: 8.2 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.1.0
READMEYes · 388 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.1.0Citation fileNoWebsiteYes · pkgdown
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

2.3K
CRAN downloads in the past year
Rank #20,220 · ~6/day · ~189/mo
Daily download trend is not available in this view yet.
27130 days
65190 days
2.3K1 year
Compare downloads with other packages →
Also on73 r2u5 autocran

Repository

2Stars
1Forks
4Open issues
7Open PRs
3Releases
488Commits
3Commit identities
488 commits · Last activity 2026-07-15 · 0% stars, 30d · Default branch at 1.1.0.9000, ahead of CRAN 1.1.0 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2025-09-03 · 12026-08-25 · 2
PracticesBeta

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.

Continuous integration (1)
GitHub Actions
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-16

pkgdown site last built 2026-07-15

Coverage (1)
Coverage reporting
CRAN release process (1)
cran-comments.md
Show all practicesHide 2 practices
Automation and maintenance (1)
Dependabot
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
24 external dependencies (excludes base and recommended)

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.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Author, Maintainer since 1.0.0 (2025)
Copyright holder
Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.0Latest
    record
    2025-09-17 · current release · diff ↗ ·
    added 2 exports
    repeat_power_linear, repeat_power_marginaleffect
  • 1.0.1
    record
    2025-07-01 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.0
    record
    2025-04-08
  • R
    R 4.4.0 released · 2024-04-24

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")
Jeppesen, M. L., Novo Nordisk A/S, & Hojbjerre-Frandsen, E. (2025). postcard: Estimating Marginal Effects with Prognostic Covariate Adjustment (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for postcard version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy