The latter can replace the former (there is same functionality + more). The latter can do this operation group-wise as well.
However we might also like to define "baseline" per group in arbitrary manner, for instance not just first but also last time point, or anything else. This would support the introduction of a generic function where one can insert group-specific reference samples (calculated separately by the user for instance). This could be just miaTime::estimateDivergence for instance, replacing the earlier ones.
We have now
mia::estimateDivergence
miaTime::estimateBaselineDivergence
The latter can replace the former (there is same functionality + more). The latter can do this operation group-wise as well.
However we might also like to define "baseline" per group in arbitrary manner, for instance not just first but also last time point, or anything else. This would support the introduction of a generic function where one can insert group-specific reference samples (calculated separately by the user for instance). This could be just
miaTime::estimateDivergence
for instance, replacing the earlier ones.Then we can have additional wrappers named
miaTime::estimateBaselineDivergence
miaTime::estimateBaselineConvergence
if that seems necessary.