← Back to home
Comparison · Analytics

fect vs tglkmeans

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

Shared themes:r-package

fect vs tglkmeans: at a glance

Featurefecttglkmeans
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesr-package, causal-inference, panel-data, api-redesignr-package, clustering, missing-data, correctness
Last editorial update1h ago1h ago
WebsiteVisit →Visit →

What is fect?

A counterfactual estimator turning itself into a platform for multiple estimands

fect implements counterfactual estimators for panel data with treatment effects — imputation-based fixed effects, interactive fixed effects, matrix completion. The 2026 releases move fast and bundle heavily: 2.1.0 rewrote complex fixed effect handling, 2.2.0 unified cross-validation under a single cv.method parameter and replaced method='gsynth' with an explicit time.component.from switch, 2.4.1 introduced a post-hoc estimand API, and 2.4.5 added group.fe for coarsened fixed effects plus a $sample slot exposing which cells entered estimation.

Read the full fect trajectory →

What is tglkmeans?

A k-means implementation that just told users their Spearman clustering on missing data was wrong

tglkmeans is a multi-core k-means implementation with seeding, aimed at single-cell and other large matrix workloads. Version 0.4.0 flipped the id_column default and moved to R's random number generator, 0.5.x added count-matrix downsampling and fixed id handling, and 0.6.3 in May 2026 is a correctness release: Spearman distance was ranking missing values as the largest value instead of dropping them, and predict_tgl_kmeans() with Euclidean distance did not reproduce the training metric when a cluster center had a missing dimension.

Read the full tglkmeans trajectory →

fect vs tglkmeans: editorial side-by-side

F
fect
ANALYTICS
0.0

A counterfactual estimator turning itself into a platform for multiple estimands

◆ Current state

fect implements counterfactual estimators for panel data with treatment effects — imputation-based fixed effects, interactive fixed effects, matrix completion. The 2026 releases move fast and bundle heavily: 2.1.0 rewrote complex fixed effect handling, 2.2.0 unified cross-validation under a single cv.method parameter and replaced method='gsynth' with an explicit time.component.from switch, 2.4.1 introduced a post-hoc estimand API, and 2.4.5 added group.fe for coarsened fixed effects plus a $sample slot exposing which cells entered estimation.

◆ Where it's heading

The direction is separation of estimation from interpretation. Where the package once returned one effect from one fit, estimand() now dispatches typed estimands — ATT, cumulative ATT, APTT, log ATT — from any imputation fit, with effect() and att.cumu() soft-deprecated but byte-identical pending 3.0.0. Alongside that runs a transparency thread: the $sample matrix, out-of-sample comparison via fect_mspe(), and named component sources instead of opaque method aliases. The release notes are unusually precise about which results change and which do not.

◆ Prediction

The soft-deprecation notice names 3.0.0 as the removal point for effect() and att.cumu(), so a major release consolidating on the estimand() dispatcher is the clearly signposted next step.

T
tglkmeans
ANALYTICS
0.0

A k-means implementation that just told users their Spearman clustering on missing data was wrong

◆ Current state

tglkmeans is a multi-core k-means implementation with seeding, aimed at single-cell and other large matrix workloads. Version 0.4.0 flipped the id_column default and moved to R's random number generator, 0.5.x added count-matrix downsampling and fixed id handling, and 0.6.3 in May 2026 is a correctness release: Spearman distance was ranking missing values as the largest value instead of dropping them, and predict_tgl_kmeans() with Euclidean distance did not reproduce the training metric when a cluster center had a missing dimension.

◆ Where it's heading

The package handles missing data across three distance metrics, and 0.6.3 shows those paths had drifted apart — Spearman behaved unlike Euclidean and Pearson, and prediction behaved unlike training. Both fixes change results on affected data, and the release notes are careful to bound exactly where: Spearman on data with NAs changes, complete data does not. Performance work runs alongside, with the dense per-thread vote matrix removed from the reassignment step.

◆ Prediction

With the metric paths now aligned on missing-value handling, further work is more likely to target the parallel reassignment internals than the distance semantics.

Alternatives to fect and tglkmeans

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 fect or tglkmeans.

See all fect alternatives → · See all tglkmeans alternatives →

Recent activity from fect and tglkmeans

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

  1. 2mo agofectAdds group.fe for coarsened fixed effects and a $sample slot
  2. 2mo agotglkmeansSpearman metric no longer ranks missing values as the largest
  3. 3mo agofectPost-hoc estimand API decouples estimands from the fit
  4. 4mo agofectUnified cross-validation and explicit control of time components
  5. 7mo agofectRewrites complex fixed effect handling and fixes speed
  6. 11mo agofectAdds heterogeneous treatment effect plots and caps default cores
  7. 2y agotglkmeansFixes corrupted cluster ids and dropped dimnames
  8. 2y agotglkmeansAdds downsample_matrix() for count matrices
  9. 2y agotglkmeansBreaking: id_column defaults to FALSE, switches to R's RNG

Frequently asked questions

What is the difference between fect and tglkmeans?

Both compete on the same themes — r-package — within Analytics. fect and tglkmeans 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 fect better than tglkmeans?

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

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

What are the best alternatives to tglkmeans?

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