← Back to home
Comparison · Analytics

OneSampleMR vs units

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

OneSampleMR vs units: at a glance

FeatureOneSampleMRunits
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesmendelian randomization, r, instrumental variables, epidemiologymeasurement units, r package, udunits2, breaking parser change
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 units?

units reaches 1.0 by rewriting its parser and accepting the breakage that comes with it.

units attaches physical units to R vectors on top of the udunits2 library, covering arithmetic, conversion and ggplot2 scales. Version 1.0-0 replaced the unit-expression tokenizer so numbers are consistently treated as prefixes, and expressions like ml/min/1.73m^2 now parse the way physiologists write them. Printing follows NIST conventions, and 1.0-1 is a fix pass over memory handling and parser edge cases.

Read the full units trajectory →

OneSampleMR vs units: 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.

U
units
ANALYTICS
0.0

units reaches 1.0 by rewriting its parser and accepting the breakage that comes with it.

◆ Current state

units attaches physical units to R vectors on top of the udunits2 library, covering arithmetic, conversion and ggplot2 scales. Version 1.0-0 replaced the unit-expression tokenizer so numbers are consistently treated as prefixes, and expressions like ml/min/1.73m^2 now parse the way physiologists write them. Printing follows NIST conventions, and 1.0-1 is a fix pass over memory handling and parser edge cases.

◆ Where it's heading

The long 0.8-x run was accretion — ggplot2 scales absorbed from ggforce, ud_convert(), matrix methods, steady performance work — while known parsing defects stayed in place. The 1.0 release finally traded backwards compatibility for correct parsing, and 1.0-1's pointer-wrapping and exception-propagation work suggests the C++ glue is being hardened behind it. Fixes cluster at the udunits2 boundary, which remains the main source of surprises.

◆ Prediction

Expect continued patch releases against udunits2 quirks and the new tokenizer's fallout rather than new surface area, with the ggplot2 integration and conversion helpers already in place.

Alternatives to OneSampleMR and units

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 units.

See all OneSampleMR alternatives → · See all units alternatives →

Recent activity from OneSampleMR and units

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

  1. 1mo agoOneSampleMROneSampleMR fixes estimates broken by covariate order in the formula
  2. 5mo agounitsMemory-leak and udunits2 parsing fixes after 1.0
  3. 5mo agoOneSampleMROneSampleMR computes conditional F for three more IV packages
  4. 10mo agounitsNew tokenizer parses compound units correctly
  5. 1y agoOneSampleMROneSampleMR 0.1.6
  6. 1y agounitsCopy semantics fix in ud_convert(); C++17 for old R
  7. 1y agounitscbind/rbind methods, ud_convert() and broad fixes
  8. 1y agounitsSilences a CRAN compiler warning
  9. 2y agoOneSampleMROneSampleMR 0.1.5
  10. 2y agoOneSampleMROneSampleMR 0.1.4
  11. 2y agounitsRestores simplify=FALSE for identical units
  12. 3y agoOneSampleMROneSampleMR 0.1.3

Frequently asked questions

What is the difference between OneSampleMR and units?

They serve adjacent needs but don't currently overlap on shipped themes. OneSampleMR and units 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 units?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. OneSampleMR and units 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 units?

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