-
Notifications
You must be signed in to change notification settings - Fork 6
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
outputs of rbmi::lsmeans() don't match those of emmeans::lsmeans() #412
Comments
Hi @adcascone, Thanks for raising this. Digging into this a bit more I don't think this is a bug but more of a "what are you estimating" issue. For reference the discrepancy comes from how we handle interactions between continuous covariates where we use Talking to @wolbersm, if I have understood him correctly, the difference comes down to whether you are wanting to construct a single hypothetical patient (in which case the emmeans approach makes more sense) or if you are wanting to construct a counterfactual e.g. what would have happened if all patients had taken drug vs all patients taking placebo (which is what our current implementation represents). If you would definitely prefer to use the hypothetical patient approach we could look to add an option to rbmi to allow users to select between the two. (@wolbersm - Please correct me if I've got any of the details above wrong) |
Hi both Thanks @gowerc! Just to small additional clarification to what @gowerc wrote:
|
So, while I think our choice is reasonable, it could be useful to document in the help pages that |
Just to clarify we ended up making the following changes which hopefully address this issue (please re-open if you feel it hasn't been sufficiently addressed)
Hope this helps ! |
On pg. 70 of the
rbmi
reference manual, users are directed to the references oflsmeans()
for identical implementations of estimating the least square means from a linear model in SAS and in R via theemmeans
package.However, the outputs of
rbmi::lsmeans()
don't match those ofemmeans::lsmeans()
Environment
Thank you,
Arianna
The text was updated successfully, but these errors were encountered: