easystats / easystats/modelbased
Make functions pipe-friendly
Open
@strengejacke is already working on this.
Since Jan 10, 2025.
Feature idea :fire:
- Dominant language
- R
- Stars
- 263
- Forks
- 22
- Avg merge
- 1h 22m
- Merged PRs (30d)
- 11
Description
API-wise I think it would make sense to add a estimate_contrasts() method to apply to estimate_slopes() outputs
estimate_slopes(m) |> estimate_contrasts()
Instead of complexifying the estimate_slopes() itself
Originally posted by @DominiqueMakowski in https://github.com/easystats/modelbased/issues/301#issuecomment-2579571469
Yes, we would still not recompute from scratch
I reckon a pipe workflow would just be syntactic sugar for:
estimate_contrasts.estimate_means <- function(x) {
model <- extract_model(x)
# recompute contrasts
estimate_contrasts(model, ...)
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.