Skip to content

Targeted Maximum Likelihood Estimation

3packages dependsuggested by 4
19.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Targeted maximum likelihood estimation of point treatment effects (Targeted Maximum Likelihood Learning, The International Journal of Biostatistics, 2(1), 2006. This version automatically estimates the additive treatment effect among the treated (ATT) and among the controls (ATC). The tmle() function calculates the adjusted marginal difference in mean outcome associated with a binary point treatment, for continuous or binary outcomes. Relative risk and odds ratio estimates are also reported for binary outcomes. Missingness in the outcome is allowed, but not in treatment assignment or baseline covariate values. The population mean is calculated when there is missingness, and no variation in the treatment assignment. The tmleMSM() function estimates the parameters of a marginal structural model for a binary point treatment effect. Effect estimation stratified by a binary mediating variable is also available. An ID argument can be used to identify repeated measures. Default settings call 'SuperLearner' to estimate the Q and g portions of the likelihood, unless values or a user-supplied regression function are passed in as arguments.

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.1.1
READMENoVignettesNoNEWSYes · 0% structuredCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
13includes a package overview page
Examples that run
100%3 run in a plain check
Exported functions with examples
27%
Documented parameters
not tracked
Return-value docs
not tracked
Help pages citing references
23%

Downloads

19.1K
CRAN downloads in the past year
Rank #3,259 · ~52/day · ~1.6K/mo
Daily download trend is not available in this view yet.
1.5K30 days
3.5K90 days
19.1K1 year
Compare downloads with other packages →
Also on134 r2u4 autocran1.9K conda_forge76 c2d4u

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing tmle adds 17 packages (10 with compiled code, 19 MB of source tarballs). Heaviest: data.table 5.7 MB, gplots 4.6 MB, glmnet 2.7 MB.

Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
0indirect
Depends 2 · Imports 1
Suggested by 4
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 1.2.0-2 (2012)
Author · added in 1.2.0-5
Contractor · added in 1.4.0
Listed in earlier versions (1)
in collaboration with Mark van der Laan
no longer listed · 1.2.0-2 to 1.2.0-4
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.1.1Latest
    record
    2025-08-30 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.1.1
    record
    2024-05-28 · diff ↗
  • 2.0.1
    record
    2024-05-02 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.0.0
    record
    2023-08-22 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.5.0.2
    record
    2021-09-06 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.5.0-1
    record
    2020-06-07 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.4.0.1
    record
    2019-10-15 · diff ↗
  • 1.4.0
    record
    2019-10-13 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
Show 14 earlier eventsHide 14 earlier events
  • 1.3.0-2
    record
    2019-02-20 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.3.0-1
    record
    2018-03-26 · diff ↗
  • 1.3.0
    record
    2018-02-01 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.2.0-5
    record
    2017-01-07 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 1.2.0-4
    record
    2014-03-09 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.2.0-3
    record
    2012-11-15 · diff ↗
  • 1.2.0-2
    record
    2012-11-14
  • R
    R 2.15.0 released · 2012-03-30

Package metadata

First published
2012-11-14
Total releases
15 / 14 yrs
License
BSD_3_clause + file LICENSE | GPL-2 OSI · relicensed from BSD in 1.2.0-3
Copyright
Copyright 2012. The Regents of the University of California (Regents). All Rights Reserved.
Bundled data
4.1 KB / 1 file
Download size
45 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("tmle")

The package provides a citation file, so citation() returns the authors' own entry.

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 tmle version 2.1.1 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, 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