Causalwiz

App
Tools for Causal Inference Analysis and Visualization
Published

May 7, 2025

source code


causalwiz is an R package for causal inference analysis. It provides tools for estimating treatment effects using various methods including Inverse Probability Weighting (IPW) and Augmented Inverse Probability Weighting (AIPW).

The package is accompanied by a series of articles, written in Italian, covering theoretical foundations of causal inference and practical implementations of the methods implemented in causalwiz.

Installation

You can install the package via Github repository:

# install.packages("pak")
pak::pak("carminemnc/causalwiz")

Usage

library(causalwiz)

# Load example data
data("welfare_small")

# Perform causal analysis
results <- ipw_estimators(
  data = welfare_small,
  estimation_method = "IPW",
  outcome = "y",
  treatment = "w",
  covariates = c("age", "polviews", "income", "educ", "marital", "sex")
)