Skip to content

ipw

1.3.0

Estimate Inverse Probability Weights

1packages depend
24.9Kdownloads / year
42.2%test coverage
13/13checks pass

Overview

About
Maintained by Hung Thai TranFirst published 2010-02-0417 releasesCRAN page ↗GitHub ↗

Functions to estimate the probability to receive the observed treatment, based on individual characteristics. The inverse of these probabilities can be used as weights when estimating causal effects from observational data via marginal structural models. Both point treatment situations and longitudinal studies can be analysed. The same functions can be used to correct for informative censoring.

Install

Health

CRAN checks
13OK
Slowest check: 2.7 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.21
42.2%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 272 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
100%

Downloads

24.9K
CRAN downloads in the past year
Rank #3,273 · ~68/day · ~2.1K/mo
Daily download trend is not available in this view yet.
99730 days
3.9K90 days
24.9K1 year
Compare downloads with other packages →
Also on143 r2u71 c2d4u

Repository

Repository
1Stars
2Forks
3Open issues
0Open PRs
0Releases
12Commits
1Contributors
12 commits · Last activity 2026-01-27 · 0% stars, 30d

Stars over time

2026-04-20 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/tranhung93/ipw on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (3)
cran-comments.mdrevdep/CRAN-SUBMISSION
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.2.0
Imports (7)
MASSnnetsurvivalgeepackgraphicsmethodsstats
LinkingTo (0)
none
Suggests (4)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Code Composition
R 1,374 (65%)Rd 731 (35%)
Code characteristics
Cyclomatic complexity
28.0 median / 71 max
Test cases
10 / 0.21 per code line

Test coverage

Line coverage

42%

Expression

47.9%

Tests / Examples

42.2% / 33% ex

Functions

4 4 exported

Complexity

32 avg / 71 max

Call network

4 nodes / 0 edges

Loading call graph…

Lowest coverage

4 functions
FunctionCycloCoverage
ipwpoint exp3932%
ipwtm exp7139%
ipwplot exp1786%
tstartfun exp1100%

Datasets

Bundled datasets · 4
NameClassRows × ColsAlso ships in
basdatdata.frame386 × 4
haartdatdata.frame19,175 × 10
healthdatdata.frame1,000 × 4
timedatdata.frame6,291 × 3

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Listed in earlier versions (3)
no longer listed · 1.0-11 to 1.3.0
no longer listed · 1.0-11 to 1.3.0
no longer listed · 1.2.2 to 1.3.0
Package Timeline

17 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.0Latest
    2026-01-27 · current release · diff ↗
  • 1.2.2
    2025-12-08 · diff ↗
  • 1.2.1.1
    2025-07-28 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.1
    2023-12-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.2
    2023-01-07 · diff ↗
  • unarchivedReturned to CRAN
    2023-01-07
  • archivedRemoved from CRAN
    2022-10-07
    email to the maintainer is undeliverable
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
Show 24 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 1.0-11
    2015-08-18 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • orphanedOrphaned by its maintainer
    2013-12-21
    maintainer address <w.m.vd.wal@umcutrecht.nl> bounced
  • R
    R 3.0.0 released · 2013-04-03
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • 1.0-10
    2011-09-11 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • 1.0-9
    2011-04-04 · diff ↗
  • R
    R 2.12.0 released · 2010-10-15
  • 1.0-8
    2010-09-30 · diff ↗
  • 1.0-7
    2010-09-09 · diff ↗
  • 1.0-6
    2010-08-20 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • 1.0-5
    2010-03-25 · diff ↗
  • 1.0-4
    2010-03-08 · diff ↗
  • 1.0-3
    2010-03-05 · diff ↗
  • 1.0-2
    2010-02-14 · diff ↗
  • 1.0-1
    2010-02-08 · diff ↗
  • 1.0
    2010-02-04
  • R
    R 2.10.0 released · 2009-10-26

Package metadata

First published
2010-02-04
Total releases
17 / 16 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.2.0
Bundled data
78 KB / 4 files
Download size
121 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →