balancePlot: Create a Baseline Balance Plot.

View source: R/balancePlot.R

balancePlotR Documentation

Create a Baseline Balance Plot.

Description

Create a Baseline Balance Plot.

Usage

balancePlot(data)

Arguments

data

tibble produced with checkBaseline.

Value

ggplot2 baseline balance plot.

Examples


library(imt)
set.seed(123)  # for reproducibility
N <- 1000
fake_data <- tibble::tibble(x1 = rnorm(N), x2 = rnorm(N), t = rbinom(N, 1, 0.5))
baseline <- checkBaseline(data = fake_data, variables = c("x1", "x2"), treatment = "t")
balancePlot(data = baseline)


imt documentation built on Sept. 11, 2024, 5:41 p.m.