-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi! I am getting an error when I try to run some code from a workshop I took on causal BART last year that featured this package.
When I run this code:
library(bartCause)
library(plotBart)
library(readr)
ihdp <- read_csv("ihdp.csv")
conf <- names(ihdp)[1:19]
plotBart::plot_overlap_pScores(ihdp,
treatment = "treat",
confounders = conf)
I get this error:
Error in plotBart::plot_overlap_pScores(ihdp, treatment = "treat", confounders = conf) :
argument "response" is missing, with no default
But I don't see anything in the documentation about a response argument being required:
plot_overlap_pScores(
.data,
treatment,
confounders,
plot_type = c("histogram", "density"),
trim = TRUE,
min_x = NULL,
max_x = NULL,
pscores = NULL,
...
)
Metadata
Metadata
Assignees
Labels
No labels