-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi,
Thanks for the awesome package. I am having some problems getting plot_moderator_d() and plot_moderator_c_bin() to work. I am getting an error that says:
Error in plot_moderator_d(model_results, lalonde$educ) :
could not find function "plot_moderator_d"
For a reprex, I am just using the example from the documentation:
library(bartCause)
library(plotBart)
data(lalonde)
confounders <- c('age', 'educ', 'black', 'hisp', 'married', 'nodegr')
model_results <- bartCause::bartc(
response = lalonde[['re78']],
treatment = lalonde[['treat']],
confounders = as.matrix(lalonde[, confounders]),
estimand = 'ate',
commonSuprule = 'none'
)
plot_moderator_d(model_results, lalonde$educ)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels