Closed graemeblair closed 5 years ago
I will add something to the docs about this. However I do think this should be the expected behavior as you're just doing (X'X)^-1X'Y
Thanks. That seems clear behind the scenes, but not necessarily to the user (plausible it could just be doing three regressions and stacking the results).
seems easy enough to implement
I don't really know the right place to put this, but I added it to lm_robust()
. I think people doing multivariate regression should probably know this anyways but if you think it needs to be in a more visible place please advise.
When you do
lm_robust(cbind(Y1, Y2, Y3) ~ x, data = data)
vslm_robust(Y1 ~ x, data = data)
when there are missing values in Y2 and Y3 that are not missing in Y1, you get different answers for effect onY1
. This is also thelm
behavior. It's not necessarily what you would expect so suggest a line in the docs on this.