Targeted Maximum Likelihood Estimation
Overview
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
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- 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
Dependencies
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.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.1.1Latest
- RR 4.5.0 released · 2025-04-11
- 2.0.1.12024-05-28 · diff ↗
- 2.0.12024-05-02 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.0.02023-08-22 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.5.0.22021-09-06 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.5.0-12020-06-07 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.4.0.12019-10-15 · diff ↗
- 1.4.02019-10-13 · diff ↗
- RR 3.6.0 released · 2019-04-26
Show 14 earlier eventsHide 14 earlier events
- 1.3.0-22019-02-20 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.3.0-12018-03-26 · diff ↗
- 1.3.02018-02-01 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 1.2.0-52017-01-07 · diff ↗
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 1.2.0-42014-03-09 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 1.2.0-32012-11-15 · diff ↗
- 1.2.0-22012-11-14
- RR 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
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.
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.