Hello! I am trying to run the following using the interflex package:
interflex(estimator = "raw", Y = "has_chapter", D = "share_sc_ten", X = "share_white", data = df_1890v2, treat.type="continuous", Ylabel = "Outcome", Dlabel = "Treatment", Xlabel="Moderator", theme.bw = TRUE, show.grid = FALSE, na.rm=TRUE)
And every time I run this I get the following error message. I have been very stuck on what to do here because these columns do exist in my data...? Thank you so much in advance.
Error: Can't subset columns that don't exist.
x Location 2 doesn't exist.
There are only 1 column.
Backtrace:
- interflex::interflex(...)
- base::sort.default(unique(data[, Y]))
- tibble:::
[.tbl_df(x, order(x, na.last = na.last, decreasing = decreasing))
- tibble:::vectbl_as_col_location(...)
- vctrs::vec_as_location(j, n, names)
- vctrs:::stop_subscript_oob(...)
- vctrs:::stop_subscript(...)