Skip to content

tmle

Targeted Maximum Likelihood Estimation

v2.1.1 · Aug 30, 2025 · BSD_3_clause + file LICENSE | GPL-2

Description

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.

Downloads

1.3K

Last 30 days

3380th

4.2K

Last 90 days

22.4K

Last year

Trend: -5.4% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (7)

imports

Dependency Network

Dependencies Reverse dependencies glmnet SuperLearner ctmle twoStageDesignTMLE CIMTx AIPW bartCause causaldef ltmle tmle

Version History

new 2.1.1 Mar 10, 2026
updated 2.1.1 ← 2.0.1.1 diff Aug 29, 2025
updated 2.0.1.1 ← 2.0.1 diff May 27, 2024
updated 2.0.1 ← 2.0.0 diff May 1, 2024
updated 2.0.0 ← 1.5.0.2 diff Aug 21, 2023
updated 1.5.0.2 ← 1.5.0-1 diff Sep 5, 2021
updated 1.5.0-1 ← 1.4.0.1 diff Jun 6, 2020
updated 1.4.0.1 ← 1.4.0 diff Oct 14, 2019
updated 1.4.0 ← 1.3.0-2 diff Oct 12, 2019
updated 1.3.0-2 ← 1.3.0-1 diff Feb 19, 2019
updated 1.3.0-1 ← 1.3.0 diff Mar 25, 2018
updated 1.3.0 ← 1.2.0-5 diff Jan 31, 2018
updated 1.2.0-5 ← 1.2.0-4 diff Jan 6, 2017
updated 1.2.0-4 ← 1.2.0-3 diff Mar 8, 2014
updated 1.2.0-3 ← 1.2.0-2 diff Nov 14, 2012
new 1.2.0-2 Nov 13, 2012