← Back to home
Comparison · Analytics

minimaxapprox vs rmediation

A side-by-side editorial comparison of minimaxapprox and rmediation — release velocity, themes, recent moves, and the top alternatives to consider.

Shared themes:correctnesscranr package

minimaxapprox vs rmediation: at a glance

Featureminimaxapproxrmediation
SectorAnalyticsAnalytics
Velocity score0.03.8
Sparks · 30d01
Top themesnumerical analysis, approximation theory, remez algorithm, correctnessmediation analysis, numerical integration, correctness, s7 classes
Last editorial update51m ago55m ago
WebsiteVisit →Visit →

What is minimaxapprox?

minimaxapprox found its Remez exchange had been silently returning the wrong minimax.

minimaxapprox computes minimax polynomial and rational approximations to functions via the Remez exchange algorithm. Version 0.6.0 is a correctness release of unusual depth: the exchange was redesigned after two structural defects were found that let it converge to a reference-local fixed point that is not the global minimax, with no warning. The worked example in the notes has atan on [0,3] at degree 3 reporting an expected error 1.8 times smaller than the returned approximation's true maximum error.

Read the full minimaxapprox trajectory →

What is rmediation?

RMediation shipped a three-normal CDF, then found it was silently wrong.

RMediation is a long-standing CRAN package for confidence intervals on mediated effects, now built on an S7 class hierarchy. Over eight weeks it added ProductNormal3 for serial indirect effects of the form a1*a2*b, folded the engine into the existing pprodnormal naming family, and then replaced that engine outright after finding it returned wrong probabilities without warning. The dev branch is at 1.7.0; CRAN still serves 1.6.1.

Read the full rmediation trajectory →

minimaxapprox vs rmediation: editorial side-by-side

M
minimaxapprox
ANALYTICS
0.0

minimaxapprox found its Remez exchange had been silently returning the wrong minimax.

◆ Current state

minimaxapprox computes minimax polynomial and rational approximations to functions via the Remez exchange algorithm. Version 0.6.0 is a correctness release of unusual depth: the exchange was redesigned after two structural defects were found that let it converge to a reference-local fixed point that is not the global minimax, with no warning. The worked example in the notes has atan on [0,3] at degree 3 reporting an expected error 1.8 times smaller than the returned approximation's true maximum error.

◆ Where it's heading

The redesign changes what drives the algorithm: roots are now located across the whole interval from an oversampled grid rather than only between consecutive reference points, each sign region takes its search direction from the error's own sign instead of a mechanically alternated schedule, and endpoints are always retained as exchange candidates. Around that sit a cluster of fixes with the same signature — a stagnation check tested in only one direction, a missing abs() in a coefficient test, ztol applied on the monomial scale when Chebyshev was requested — each one a silent wrong answer rather than a crash. Conditioning on ranges far from [-1,1] was also addressed, at the cost of a breaking change.

◆ Prediction

Nearly every fix here came from auditing places where the package trusted its own structure instead of measuring the error curve, so the next release most likely continues that audit into the rational-approximation path rather than adding features.

R
rmediation
ANALYTICS
3.8

RMediation shipped a three-normal CDF, then found it was silently wrong.

◆ Current state

RMediation is a long-standing CRAN package for confidence intervals on mediated effects, now built on an S7 class hierarchy. Over eight weeks it added ProductNormal3 for serial indirect effects of the form a1*a2*b, folded the engine into the existing pprodnormal naming family, and then replaced that engine outright after finding it returned wrong probabilities without warning. The dev branch is at 1.7.0; CRAN still serves 1.6.1.

◆ Where it's heading

The package is moving from a hand-rolled numerical layer to one that checks itself: the new default integrator escalates its node count until successive rules agree, warns when it hits the cap instead of returning a number, and exposes a diagnostics argument for the convergence estimate. The correctness fix went to dev ahead of the CRAN window rather than being held for it, which suggests wrong-answer bugs are treated as release-blocking regardless of cadence. Serial mediation is where the new surface area is concentrated.

◆ Prediction

1.7.0 exists specifically to land before CRAN's 2026-08-21 update window, so the next move is a CRAN submission promoting it to main; whether hcubature survives past that as a cross-check option is the open question.

Alternatives to minimaxapprox and rmediation

Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either minimaxapprox or rmediation.

See all minimaxapprox alternatives → · See all rmediation alternatives →

Recent activity from minimaxapprox and rmediation

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 8h agormediationv1.7.0 — pprodnormal3() correctness fix
  2. 1mo agominimaxapproxCRAN release v0.6.0
  3. 1mo agormediationp_prod3() renamed into the pprodnormal family
  4. 1mo agormediationProductNormal3: exact CDF for a product of three normals
  5. 1mo agormediationmedfit reaches CRAN; Remotes pointer dropped
  6. 2y agominimaxapproxCRAN release 0.2.0

Frequently asked questions

What is the difference between minimaxapprox and rmediation?

Both compete on the same themes — correctness, cran, r package — within Analytics. rmediation is currently shipping more aggressively (velocity 3.8 vs 0.0), with 1 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is minimaxapprox better than rmediation?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. rmediation is currently shipping more aggressively (velocity 3.8 vs 0.0), with 1 editorial sparks in the last 30 days against 0. For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to minimaxapprox?

Top minimaxapprox alternatives in Analytics are ranked by recent ship velocity. Browse the "minimaxapprox alternatives" section above for the current picks, or visit /alternatives/minimaxapprox for the full list with editorial commentary on each.

What are the best alternatives to rmediation?

Top rmediation alternatives in Analytics are ranked by recent ship velocity. Browse the "rmediation alternatives" section above for the current picks, or visit /alternatives/rmediation for the full list with editorial commentary on each.