R package citation, R package reverse dependencies, R package scholars, install an r package from GitHub hy is package acceptance pending why is package undeliverable amazon why is package on hold dhl tour packages why in r package r and r package full form why is r free why r is bad which r package to install which r package has which r package which r package version which r package readxl which r package ggplot which r package fread which r package license where is package.json where is package-lock.json where is package.swift where is package explorer in eclipse where is package where is package manager unity where is package installer android where is package manager console in visual studio who r package which r package to install which r package version who is package who is package deal who is package design r and r package full form r and r package meaning what r package has what package r what is package in java what is package what is package-lock.json what is package in python what is package.json what is package installer do r package can't install r packages r can't find package r can't load package can't load xlsx package r can't install psych package r can't install sf package r Write if else in NONMEM pk pd
twangMediation
View on CRAN: Click
here
Download and install twangMediation package within the R console
Install from CRAN:
install.packages("twangMediation")
Install from Github:
library("remotes")
install_github("cran/twangMediation") Install by package version:
library("remotes")
install_version("twangMediation", "1.2.1") Attach the package and use:
library("twangMediation")
Maintained by
Dan McCaffrey
[Scholar Profile | Author Map]
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2021-07-27
Latest Update: 2025-09-01
Description:
Provides functions for estimating natural direct and indirect effects for mediation analysis. It uses weighting where the weights are functions of estimates of the probability of exposure or treatment assignment (Hong, G (2010). <https://cepa.stanford.edu/sites/default/files/workshops/GH_JSM%20Proceedings%202010.pdf> Huber, M. (2014). <doi:10.1002/jae.2341>). Estimation of probabilities can use generalized boosting or logistic regression. Additional functions provide diagnostics of the model fit and weights. The vignette provides details and examples.
How to cite:
Dan McCaffrey (2021). twangMediation: Twang Causal Mediation Modeling via Weighting. R package version 1.2.1, https://cran.r-project.org/web/packages/twangMediation. Accessed 29 Oct. 2026.
Previous versions and publish date:
Other packages that cited twangMediation R package
View twangMediation citation profile
Other R packages that twangMediation depends,
imports, suggests or enhances
Complete documentation for twangMediation
Functions, R codes and Examples using
the twangMediation R package
Some associated functions: NSDUH_female . bal.table.mediation . calculate_effects . check_missing . desc.effects.mediation . desc.effects . dx.wts.mediation . plot.mediation . print.bal.table.mediation . print.mediation . summary.mediation . swapTxCtrl . tMdat . twangMediation-package . weighted_mean . wgtmed .
Some associated R codes: bal.table.mediation.R . data.R . desc.effects.R . desc.effects.mediation.R . diag.plot.color.R . dx.wts.mediation.R . makePlotDat.R . plot.mediation.R . print.bal.table.mediation.R . print.mediation.R . summary.mediation.R . twangMediation-package.R . twang_functions.R . utils_mediation.R . vignettename.R . wgtmed.R . Full twangMediation package functions and examples
Downloads during the last 30 days
Today's Hot Picks in Authors and Packages
GEVcdn
Implements a flexible nonlinear modelling framework for nonstationary generalized extreme value anal ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Alex J. Cannon (view profile)
personalized2part
Implements the methodology of Huling, Smith, and
Chen (2020) , w ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Jared Huling (view profile)
binovisualfields
Simulation and visualization depth-dependent integrated visual fields. Visual fields are measured mo ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Ping Liu (view profile)
nextGenShinyApps
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Obinna Obianom (view profile)
fastRG
Samples generalized random product graphs, a generalization of
a broad class of network models. Giv ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Alex Hayes (view profile)
29,218
R Packages
247,686
Dependencies
77,281
Author Associations
29,219
Publication Badges
