easystats / easystats/modelbased

Make functions pipe-friendly

Open
#304 0 comments 2 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.