You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create function to calculate statistics returned by tern::s_ancova().
Function summarizes results of emmeans::emmeans(stats::lm(formula)) and emmeans::contrast(fit, method = "trt.vs.ctrl") and should return the following statistics:
n: Count of complete sample size for the group.
lsmean: Estimated marginal means in the group.
lsmean_diff: Difference in estimated marginal means in comparison to the reference group.
lsmean_diff_ci: Confidence level for difference in estimated marginal means in comparison to the reference group.
pval: p-value (not adjusted for multiple comparisons).
I wonder if it's worth combining these functions or keeping two separate for LS mean and LS mean differences? Also, what should the name of the fn be? I think ANCOVA is too general, and I think I prefer something referencing LS means (also with our naming convention, it'll begin with ard_emmeans_*()
Create function to calculate statistics returned by
tern::s_ancova()
.Function summarizes results of
emmeans::emmeans(stats::lm(formula))
andemmeans::contrast(fit, method = "trt.vs.ctrl")
and should return the following statistics:n
: Count of complete sample size for the group.lsmean
: Estimated marginal means in the group.lsmean_diff
: Difference in estimated marginal means in comparison to the reference group.lsmean_diff_ci
: Confidence level for difference in estimated marginal means in comparison to the reference group.pval
: p-value (not adjusted for multiple comparisons).See https://insightsengineering.github.io/tern/latest-tag/reference/summarize_ancova.html for details on the tern function.
The text was updated successfully, but these errors were encountered: