Closed lukesonnet closed 5 years ago
This is caused by the way we repeat outcome
to accommodate multiple outcomes in multivariate regressions. I believe the solution is to just break the lh
data.frame into a list and clobber the outcome to be unique(outcome)
when we tidy or print an lh
object.
Otherwise, we could have lh
be a list instead of a data.frame, and turn it into a data.frame with tidy.lh
, but it's probably too late to change that.
tidy(lh_robust(mpg ~ cyl + am, data = mtcars, linear_hypothesis = c("cyl=1", "cyl=am"))$lh)
Output: