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 26 Aug. 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
ncodeR
A set of techniques that can be used to develop, validate, and implement automated classifiers. A po ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Cody L Marquart (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)
RCytoGPS
Defines classes and methods to process text-based
cytogenetics using the CytoGPS web site, then imp ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Kevin R. Coombes (view profile)
clinUtils
Utility functions to facilitate the import,
the reporting and analysis of clinical data.
Example ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Laure Cougnaud (view profile)
SelvarMix
Performs a regularization approach to variable selection in themodel-based clustering and classifica ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Mohammed Sedki (view profile)
PCADSC
A suite of non-parametric, visual tools for assessing differences in data structures
for two datase ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Anne H. Petersen (view profile)
28,332
R Packages
239,283
Dependencies
75,113
Author Associations
28,333
Publication Badges
