Skip to content

Commit

Permalink
Tidying output balance exploration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo Fabbri committed Jun 22, 2023
1 parent e9bb285 commit adc209d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/weighting.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ estimate_weights <- function(dat,
#' @export
explore_balance <- function(exposure,
covariates,
weights,
path_save) {
weights) {
threshold_cor <- 0.1

# Assessing balance numerically
Expand All @@ -94,9 +93,11 @@ explore_balance <- function(exposure,
abs = TRUE,
var.order = "unadjusted",
thresholds = c(cor = threshold_cor),
line = TRUE)
line = TRUE,
title = exposure)

return(list(
exposure = exposure,
tab = tab,
graph = graph,
love = love
Expand Down

0 comments on commit adc209d

Please sign in to comment.