Closed vincentarelbundock closed 1 month ago
It should absolutely be the latter, but I thought users could already request this using "ratioavg"
. The former is not useful because risk ratios are not collapsible (except in a very obscure sense). I think it would be a good change to make all the avg_{.}()
functions automatically apply the "{.}avg"
suffix for any comparison.
Thanks, that's what I thought.
Yes, ratioavg
was available, but I discovered an inconsistency in the code where we would automatically switch to the avg
version if by
was the name of a variable as character, but not when calling avg_comparisons()
or using by=TRUE
. All three use cases should now switch automatically to the appropriate function.
Merged.
Thanks for confirming!
@ngreifer, do you have a view of what the default ratio function should be when we take an average?