Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_overlap_pScores() error #3

Open
eteitelbaum opened this issue Sep 27, 2024 · 1 comment
Open

plot_overlap_pScores() error #3

eteitelbaum opened this issue Sep 27, 2024 · 1 comment

Comments

@eteitelbaum
Copy link

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,
  ...
)
@joemarlo
Copy link
Member

Tagging @gperrett here as I think this is also a disconnect between the GitHub version and the CRAN version. The CRAN version shows response in the pdf documentation but the GitHub version documentation shows none. I'm guessing the solution is to submit the latest version to CRAN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants