balancePlot | R Documentation |
Create a Baseline Balance Plot.
balancePlot(data)
data |
tibble produced with |
ggplot2 baseline balance plot.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.