← Back to home
Comparison · Analytics

OneSampleMR vs treeshap

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

OneSampleMR vs treeshap: at a glance

FeatureOneSampleMRtreeshap
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesmendelian randomization, r, instrumental variables, epidemiologyshap, model explainability, tree ensembles, r package
Last editorial update1h ago2h ago
WebsiteVisit →Visit →

What is OneSampleMR?

OneSampleMR found that argument order in a formula was silently changing its estimates

OneSampleMR implements one-sample Mendelian randomization estimators — two-stage predictor substitution, two-stage residual inclusion, and Sanderson-Windmeijer conditional F statistics for instrument strength. The package spent its first years on packaging and dependency upkeep. The 2026 releases turn to substance: broader support for models fitted elsewhere, then a correctness fix for a defect that depended on nothing more than where covariates appeared in a formula.

Read the full OneSampleMR trajectory →

What is treeshap?

treeshap keeps widening its tree-model coverage while the SHAP math stays put.

treeshap computes exact SHAP values for tree ensembles in R, reaching each modelling framework through a per-framework unify() adapter. Since returning to CRAN in 2023 it has added GPBoost, ranger survival forests and multi-output models to that adapter layer. Four releases in three years, each dominated by adapter work contributed by users of one specific framework.

Read the full treeshap trajectory →

OneSampleMR vs treeshap: editorial side-by-side

O
OneSampleMR
ANALYTICS
0.0

OneSampleMR found that argument order in a formula was silently changing its estimates

◆ Current state

OneSampleMR implements one-sample Mendelian randomization estimators — two-stage predictor substitution, two-stage residual inclusion, and Sanderson-Windmeijer conditional F statistics for instrument strength. The package spent its first years on packaging and dependency upkeep. The 2026 releases turn to substance: broader support for models fitted elsewhere, then a correctness fix for a defect that depended on nothing more than where covariates appeared in a formula.

◆ Where it's heading

Two threads. The first is reach — fsw() now reads models fitted by AER::ivreg(), estimatr::iv_robust() and fixest::feols() in addition to ivreg::ivreg(), which makes conditional F statistics available without refitting in the package's own idiom. The second is hardening: clear errors when more than one exposure is given or when a variable collides with the reserved name y, and print methods that no longer fail on user-specified t0 with log or logit links. Both come largely from user reports rather than a plan.

◆ Prediction

The estimator-support work has been adding one IV-fitting package at a time on outside contributions, so further backends are the likeliest next content — the package's own estimators have been stable since first release.

T
treeshap
ANALYTICS
0.0

treeshap keeps widening its tree-model coverage while the SHAP math stays put.

◆ Current state

treeshap computes exact SHAP values for tree ensembles in R, reaching each modelling framework through a per-framework unify() adapter. Since returning to CRAN in 2023 it has added GPBoost, ranger survival forests and multi-output models to that adapter layer. Four releases in three years, each dominated by adapter work contributed by users of one specific framework.

◆ Where it's heading

The direction is breadth of model support rather than new explanation methods: every release since the first CRAN submission adds or repairs a unify() backend. Maintenance is community-driven, with named contributors fixing the framework they personally use. Nothing in these entries points at work on the SHAP algorithms themselves.

◆ Prediction

Expect the next release to add or repair another unify() adapter as a contributor brings their own framework, rather than to change how explanations are computed.

Alternatives to OneSampleMR and treeshap

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 OneSampleMR or treeshap.

See all OneSampleMR alternatives → · See all treeshap alternatives →

Recent activity from OneSampleMR and treeshap

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

  1. 1mo agoOneSampleMROneSampleMR fixes estimates broken by covariate order in the formula
  2. 3mo agotreeshapGPBoost support lands; xgboost adapter repaired
  3. 5mo agoOneSampleMROneSampleMR computes conditional F for three more IV packages
  4. 1y agoOneSampleMROneSampleMR 0.1.6
  5. 2y agoOneSampleMROneSampleMR 0.1.5
  6. 2y agoOneSampleMROneSampleMR 0.1.4
  7. 2y agotreeshapFixes broken lightgbm.unify examples
  8. 2y agotreeshapMulti-output model explanations added
  9. 2y agotreeshapFirst CRAN release consolidates the unify() adapters
  10. 3y agoOneSampleMROneSampleMR 0.1.3

Frequently asked questions

What is the difference between OneSampleMR and treeshap?

They serve adjacent needs but don't currently overlap on shipped themes. OneSampleMR and treeshap are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is OneSampleMR better than treeshap?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. OneSampleMR and treeshap are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to OneSampleMR?

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

What are the best alternatives to treeshap?

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