← Back to home
Comparison · Analytics

cTMed vs gratia

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

Shared themes:r-package

cTMed vs gratia: at a glance

FeaturecTMedgratia
SectorAnalyticsAnalytics
Velocity score2.50.0
Sparks · 30d00
Top themesmediation-analysis, continuous-time-models, r-package, statistical-methodsgam, mgcv, ggplot2, statistical-graphics
Last editorial update6h ago48m ago
WebsiteVisit →Visit →

What is cTMed?

Continuous-time mediation effects get standardized centrality, six years into steady patch work

cTMed computes direct, indirect and total effects for continuous-time mediation models, with delta-method, Monte Carlo and bootstrap variants of each. Development is a long run of patch releases from the jeksterslab account, roughly every two months, each adding a function or two. The latest adds standardized centrality measures and allows a diagonal sigma across ten standardized estimators.

Read the full cTMed trajectory →

What is gratia?

The tidy front-end for GAMs, now stable enough that upstream ggplot2 sets its release calendar.

gratia wraps mgcv-fitted generalized additive models in tidy data frames and ggplot2 graphics — smooth_estimates(), fitted_values(), derivatives(), draw() and appraise() cover evaluation, prediction and diagnostics. The API reached its intended shape at 0.9.0, when every generated column was renamed to a dot-prefixed form, and 0.10.0 added conditional_values() for covariate-conditional prediction plots.

Read the full gratia trajectory →

cTMed vs gratia: editorial side-by-side

C
cTMed
ANALYTICS
2.5

Continuous-time mediation effects get standardized centrality, six years into steady patch work

◆ Current state

cTMed computes direct, indirect and total effects for continuous-time mediation models, with delta-method, Monte Carlo and bootstrap variants of each. Development is a long run of patch releases from the jeksterslab account, roughly every two months, each adding a function or two. The latest adds standardized centrality measures and allows a diagonal sigma across ten standardized estimators.

◆ Where it's heading

The package is filling out a matrix rather than changing shape: for each effect type there is a delta-method, a Monte Carlo and a bootstrap path, and each release closes another cell. The 2025 releases were largely externally forced — an Armadillo 15.0.x transition at CRAN, a citation addition after the Psychological Methods paper landed — which suggests the statistical core has been settled since the 1.0.6 standardization revision.

◆ Prediction

The diagonal-sigma option has now reached the standardized estimators; extending it to the remaining unstandardized variants is the obvious next cell to fill.

G
gratia
ANALYTICS
0.0

The tidy front-end for GAMs, now stable enough that upstream ggplot2 sets its release calendar.

◆ Current state

gratia wraps mgcv-fitted generalized additive models in tidy data frames and ggplot2 graphics — smooth_estimates(), fitted_values(), derivatives(), draw() and appraise() cover evaluation, prediction and diagnostics. The API reached its intended shape at 0.9.0, when every generated column was renamed to a dot-prefixed form, and 0.10.0 added conditional_values() for covariate-conditional prediction plots.

◆ Where it's heading

The package has moved through a long rewrite cycle and out the other side. Successive releases replaced evaluate_smooth() with smooth_estimates(), rebuilt draw() on top of it, then renamed the entire output vocabulary to avoid colliding with user variables. That work is finished; 0.11.1 is driven almost entirely by ggplot2 4.0.0 compatibility, with new mgcv family support for quantile residuals riding along. Development now tracks upstream breakage rather than internal redesign.

◆ Prediction

Expect the next releases to continue absorbing ggplot2 4.x and mgcv changes, with incremental family coverage in quantile_residuals() as the visible new work. The entries give no signal on which mgcv families come next.

Alternatives to cTMed and gratia

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 cTMed or gratia.

See all cTMed alternatives → · See all gratia alternatives →

Recent activity from cTMed and gratia

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

  1. 27d agocTMedStandardized centrality measures and diagonal-sigma support
  2. 6mo agocTMedMinor method edits
  3. 10mo agocTMedPackage citation added for the Psychological Methods paper
  4. 10mo agocTMedArmadillo 15.0.x compatibility for CRAN
  5. 11mo agogratiaggplot2 4.0.0 compatibility, plus four more quantile-residual families
  6. 1y agocTMedStandardization reworked around the steady-state covariance matrix
  7. 1y agocTMedBootstrap centrality estimators and MCPhiSigma()
  8. 1y agogratiaconditional_values() replaces vis.gam for conditional prediction plots
  9. 2y agogratiaparametric_effects() joins the dot-prefix rename; LSS families begin
  10. 2y agogratiaEvery generated column gains a dot prefix
  11. 3y agogratiaReal variable names in smooth_samples(), plus dplyr 1.1.0 fixes
  12. 4y agogratiaM1 example output fixes and confint tibble returns

Frequently asked questions

What is the difference between cTMed and gratia?

Both compete on the same themes — r-package — within Analytics. cTMed is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 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 cTMed better than gratia?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. cTMed is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 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 cTMed?

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

What are the best alternatives to gratia?

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