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

Let outcome.name take a null value so that create.formula() can create a one-sided formula #13

Open
BorgeJorge opened this issue May 28, 2023 · 3 comments

Comments

@BorgeJorge
Copy link

Title says it all!

@dachosen1
Copy link
Owner

@BorgeJorge one sided formulas are typically not used in functions like lm or glm, which expects both a predictor and and a outcome variables. How would this be useful.

@BorgeJorge
Copy link
Author

One-sided formulas are used in xtabs(), cor.test(), nlme(), reStruct(), pairs(), plot.lme(), model.matrix(), snm(), matchit(), weightit(), and several other functions. It's common enough that the stats package provides a function to create a one-sided formula (asOneSidedFormula()), cobalt::f.build() will also create one, and is.one.sided() will test for one.

@dachosen1
Copy link
Owner

@BorgeJorge this seems reasonable we'll work on designing a solution. Thanks

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

2 participants