balancePlot {imt} | R Documentation |
Create a Baseline Balance Plot.
Description
Create a Baseline Balance Plot.
Usage
balancePlot(data)
Arguments
data |
tibble produced with |
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)
[Package imt version 1.0.0 Index]