← Back to home
Comparison · Analytics

OneSampleMR vs socialmixr

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

Shared themes:epidemiology

OneSampleMR vs socialmixr: at a glance

FeatureOneSampleMRsocialmixr
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesmendelian randomization, r, instrumental variables, epidemiologycontact matrices, epidemiology, pipeline api, breaking changes
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 socialmixr?

socialmixr breaks its one-shot contact_matrix() call into a composable pipeline.

socialmixr builds age-structured social contact matrices from survey data for infectious-disease modelling. Version 0.6.0 replaces the monolithic contact_matrix() entry point with a chain of composable steps — filter, assign age groups, weigh, compute, then symmetrise, split or convert per capita — behind a new contact_matrix S3 class. Survey downloading is being handed off to a separate contactsurveys package.

Read the full socialmixr trajectory →

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

S
socialmixr
ANALYTICS
0.0

socialmixr breaks its one-shot contact_matrix() call into a composable pipeline.

◆ Current state

socialmixr builds age-structured social contact matrices from survey data for infectious-disease modelling. Version 0.6.0 replaces the monolithic contact_matrix() entry point with a chain of composable steps — filter, assign age groups, weigh, compute, then symmetrise, split or convert per capita — behind a new contact_matrix S3 class. Survey downloading is being handed off to a separate contactsurveys package.

◆ Where it's heading

The arc from 0.4.0 to 0.6.0 is decomposition: first extracting helpers like assign_age_groups(), then moving downloads out of the package, and now exposing every stage of matrix construction as its own verb. Breaking changes are accepted at each step — preserved empty age groups, arrays instead of xtabs, [N,Inf) labels — with the new class inheriting from list so existing $matrix access keeps working. The label change is explicitly aligned with the contactmatrix package.

◆ Prediction

Expect the deprecated dotted argument names and the remaining in-package download paths to be removed once the contactsurveys handoff completes, leaving contact_matrix() as a thin wrapper over the pipeline.

Alternatives to OneSampleMR and socialmixr

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

See all OneSampleMR alternatives → · See all socialmixr alternatives →

Recent activity from OneSampleMR and socialmixr

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

  1. 1mo agoOneSampleMROneSampleMR fixes estimates broken by covariate order in the formula
  2. 3mo agosocialmixrContact matrices become a composable pipeline
  3. 5mo agoOneSampleMROneSampleMR computes conditional F for three more IV packages
  4. 6mo agosocialmixrPatch: load_survey() handles files without cont_id
  5. 6mo agosocialmixrAge-group assignment and population lookup split out
  6. 1y agoOneSampleMROneSampleMR 0.1.6
  7. 1y agosocialmixrFaster survey loading and cached Zenodo lookups
  8. 2y agoOneSampleMROneSampleMR 0.1.5
  9. 2y agoOneSampleMROneSampleMR 0.1.4
  10. 2y agosocialmixrcontact_matrix() now takes survey objects only
  11. 2y agosocialmixrTest fixes for machine-precision failures
  12. 3y agoOneSampleMROneSampleMR 0.1.3

Frequently asked questions

What is the difference between OneSampleMR and socialmixr?

Both compete on the same themes — epidemiology — within Analytics. OneSampleMR and socialmixr 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 socialmixr?

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

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