Skip to content

Commit

Permalink
s.weights arguments for function on selection weights, set to NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzoFabbri committed Dec 12, 2023
1 parent 918d023 commit 0e5dc97
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/weighting.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ estimate_weights <- function(dat,
discrete = FALSE,
use_kernel = method_args$use_kernel,
plot = ifelse(method_args$use_kernel == TRUE,
TRUE,
FALSE
TRUE,
FALSE
)
)

Expand Down Expand Up @@ -139,6 +139,7 @@ estimate_selection_weights <- function(dat, idxs_selected, id_var,
),
exposure = "selected",
covariates = list_covars,
s.weights = NULL,
id_var = id_var,
method = method,
method_args = method_args
Expand Down Expand Up @@ -232,8 +233,8 @@ explore_balance <- function(exposure, type_exposure,
# Assessing balance graphically
graph <- lapply(covariates, function(x) {
cobalt::bal.plot(weights,
var.name = x,
which = "both"
var.name = x,
which = "both"
)
})

Expand Down

0 comments on commit 0e5dc97

Please sign in to comment.