Skip to content

plot_overlap_pScores() error #3

@eteitelbaum

Description

@eteitelbaum

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions