Learn R Programming

imt (version 1.0.0)

balancePlot: Create a Baseline Balance Plot.

Description

Create a Baseline Balance Plot.

Usage

balancePlot(data)

Value

ggplot2 baseline balance plot.

Arguments

data

tibble produced with checkBaseline.

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab