Closed augi-be closed 1 year ago
Hi @JiaLiu0001 , can you have a look at this one please?
Yes, this is a bug in s_ancova. conf_level should be included in emmeans::contrast() to pass the conf_level from parameters. Thank you @iaugustypers Will get it fixed.
What happened?
A bug happened! For the confidence interval for difference in lsmeans, always the 95% level is presented, despite the label showing the level passed into parameter conf_level.
This is happening in the function s_ancova, where the conf_level parameter is not passed onto the parameter level in the emmeans::contrast function call.
Corrected code would look like this: emmeans_contrasts <- emmeans::contrast(emmeans_fit, method = "trt.vs.ctrl", ref = ref_key,level = conf_level)
sessionInfo()
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy