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

mlm can't handle functions in predictors #6

Closed
josherrickson opened this issue Jul 7, 2016 · 1 comment
Closed

mlm can't handle functions in predictors #6

josherrickson opened this issue Jul 7, 2016 · 1 comment

Comments

@josherrickson
Copy link
Collaborator

E.g.,

> n <- 10
> aa <- data.frame(x = rnorm(n), y = rnorm(n), t = rep(0:1, each = n/2))
> aa$match <- fullmatch(t ~ x, data = aa)
> mlm(y ~ scale(x) + match, data = aa)
 Error in `[.data.frame`(data, all.vars(ttt)) : undefined columns selected 
@josherrickson
Copy link
Collaborator Author

Solved in commit f4a93e8 by creating the new data.frame with core variables instead of computed (e.g. x over scale(x)).

Issue was opened just to maintain a log of the change.

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