← Back to home
Comparison · Analytics

discrim vs rstanarm

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

discrim vs rstanarm: at a glance

Featurediscrimrstanarm
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themestidymodels, discriminant analysis, parsnip extension, classificationbayesian, stan, regression-models, dependency-migration
Last editorial update5h ago1h ago
WebsiteVisit →Visit →

What is discrim?

discrim settled into a thin engine shim after handing its model definitions to parsnip.

discrim is the parsnip extension for discriminant analysis, exposing linear, quadratic, flexible and regularized variants through the tidymodels interface. Its model definition functions moved into parsnip itself in 0.2.0, leaving this package as the engine and prediction layer. The two most recent releases are a documentation fix and a single prediction bug.

Read the full discrim trajectory →

What is rstanarm?

rstanarm is community-maintained now, tracking Stan and lme4 rather than adding models.

2.32.2 is entirely infrastructure and dependency work: formula machinery migrated from lme4 to reformulas, `r_eff` no longer computed for loo by default, the Stan R packages repo replaced by R-Universe, rstantools adopted to fix build and export errors, and CRAN NOTE cleanups — contributed largely by four first-time contributors. 2.32.1 and 2.26.1 follow the same pattern, tracking rstan syntax and adding `posterior::as_draws()` support. The last release with substantive modelling content is 2.21.1, which changed how default priors are determined and flipped `autoscale` to FALSE outside default priors.

Read the full rstanarm trajectory →

discrim vs rstanarm: editorial side-by-side

D
discrim
ANALYTICS
0.0

discrim settled into a thin engine shim after handing its model definitions to parsnip.

◆ Current state

discrim is the parsnip extension for discriminant analysis, exposing linear, quadratic, flexible and regularized variants through the tidymodels interface. Its model definition functions moved into parsnip itself in 0.2.0, leaving this package as the engine and prediction layer. The two most recent releases are a documentation fix and a single prediction bug.

◆ Where it's heading

The package built out method coverage early, adding quadratic discriminant analysis in 0.1.2, the sda and sparsediscrim engines in 0.1.3 and case weights in 1.0.0, then stopped growing. Handing definitions upstream to parsnip in 0.2.0 confirmed the shape: discrim is where engines are wired, not where the API lives. Cadence since 2022 is roughly one small fix a year.

◆ Prediction

Nothing in the entries points to new methods or engines; the next release is most likely another CRAN or prediction-path fix.

R
rstanarm
ANALYTICS
0.0

rstanarm is community-maintained now, tracking Stan and lme4 rather than adding models.

◆ Current state

2.32.2 is entirely infrastructure and dependency work: formula machinery migrated from lme4 to reformulas, `r_eff` no longer computed for loo by default, the Stan R packages repo replaced by R-Universe, rstantools adopted to fix build and export errors, and CRAN NOTE cleanups — contributed largely by four first-time contributors. 2.32.1 and 2.26.1 follow the same pattern, tracking rstan syntax and adding `posterior::as_draws()` support. The last release with substantive modelling content is 2.21.1, which changed how default priors are determined and flipped `autoscale` to FALSE outside default priors.

◆ Where it's heading

The package has moved from feature development into ecosystem maintenance, and the contributor list shows why it survives: outside developers keep it compiling against a moving Stan, lme4 and CRAN. The `as_draws()` support and the reformulas migration both point the same way — rstanarm increasingly consumes shared infrastructure (posterior, reformulas, rstantools) instead of carrying its own.

◆ Prediction

Expect the next release to track another upstream change — rstan, reformulas or CRAN policy — rather than add model families. The pre-fit model surface looks settled.

Alternatives to discrim and rstanarm

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 discrim or rstanarm.

See all discrim alternatives → · See all rstanarm alternatives →

Recent activity from discrim and rstanarm

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

  1. 8mo agodiscrimFix for FDA models failing at prediction time
  2. 10mo agorstanarmrstanarm 2.32.2 migrates formula machinery to reformulas
  3. 11mo agodiscrimDocumentation links updated to stay on CRAN
  4. 2y agorstanarmrstanarm 2.32.1 fixes unit_vector error, enables LTO
  5. 2y agorstanarmrstanarm 2.26.1 adopts new rstan syntax and as_draws()
  6. 4y agodiscrimCase weights enabled for flexible and linear discriminant models
  7. 4y agorstanarmrstanarm 2.21.3 fixes loo() and adds stan_jm offsets
  8. 4y agodiscrimModel definitions moved upstream into parsnip
  9. 5y agodiscrimsda and sparsediscrim engines added for LDA and QDA
  10. 5y agodiscrimdiscrim_quad() added; package relicensed to MIT
  11. 6y agorstanarmrstanarm 2.21.1 changes default prior behaviour

Frequently asked questions

What is the difference between discrim and rstanarm?

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

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

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

What are the best alternatives to rstanarm?

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