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

. in predictor variable name causes errors #5

Open
jebyrnes opened this issue Oct 7, 2020 · 0 comments
Open

. in predictor variable name causes errors #5

jebyrnes opened this issue Oct 7, 2020 · 0 comments

Comments

@jebyrnes
Copy link

jebyrnes commented Oct 7, 2020

dat <- tibble(x.x = 1:10,
              y = rnorm(x.x)) %>%
  as.data.frame()

mod <- lm(y ~ x.x, data = dat)

a <- qi_builder(mod,
                newdata = dat,
                slim = FALSE,
                ci = 1
                )

Causes the error

Error in possible_interaction_terms(fitted_names, n = k) : 
  Number of possible interaction terms cannot exceed number of base terms.

If I replace the . with a _, the error goes away.

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

1 participant