Closed graemeblair closed 5 years ago
It is not. I'm still not sure how this happened, but it is the result of duplicating the response in the full_formula
. That was unnecessary and I've now fixed it in #290. All tests still pass, and a test was added to catch this problem.
As an aside, when you are entering functions to be evaluated in a formula, I strongly suggest you use I()
. For example, this bug doesn't exist if you do:
lm_lin(Y ~ Z, covariates = ~ I(!is.na(missing_cov)), data = df)
Is this expected? Looks like it might be interacting with how we modify the formula for the lin estimator, i.e.
!is.na(missing_cov) + ZTRUE
is odd.