← Back to home
Comparison · Infra & APIs

midr vs states

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

midr vs states: at a glance

Featuremidrstates
SectorInfra & APIsInfra & APIs
Velocity score0.00.0
Sparks · 30d00
Top themesexplainable-ai, surrogate-models, shapley, survival-analysispolitical-science, panel-data, country-codes, datasets
Last editorial update2h ago42m ago
WebsiteVisit →Visit →

What is midr?

A black-box interpreter reaches CRAN, then learns multi-class and survival responses

midr explains black-box models by fitting an interpretable surrogate through Maximum Interpretation Decomposition — main effects plus second-order interactions, with exact Shapley values for the surrogate. Two months after its first CRAN release it can take a matrix response, which covers multi-class classification and survival models, and hold collections of fitted interpretations in midlist and midrib objects for comparison.

Read the full midr trajectory →

What is states?

State-panel tooling holding steady since its 2020 data and ergonomics release.

states supplies the Gleditsch & Ward and Correlates of War state lists and the tooling to turn them into country-year or country-month panels, with plot_missing() for coverage checks. The substantive work landed in 2020; the releases since are compatibility fixes against ggplot2, dplyr, readr and testthat. The most recent entry is a single test repair.

Read the full states trajectory →

midr vs states: editorial side-by-side

M
midr
INFRA · APIS
0.0

A black-box interpreter reaches CRAN, then learns multi-class and survival responses

◆ Current state

midr explains black-box models by fitting an interpretable surrogate through Maximum Interpretation Decomposition — main effects plus second-order interactions, with exact Shapley values for the surrogate. Two months after its first CRAN release it can take a matrix response, which covers multi-class classification and survival models, and hold collections of fitted interpretations in midlist and midrib objects for comparison.

◆ Where it's heading

The releases move outward along two axes at once: what can be interpreted, and how much of it fits in memory. Version 0.5.3 rebuilt the fitting path to avoid materialising large design matrices and added a save.memory option; 0.6.0 widened the response from a vector to a matrix and added parametric link functions. Class and argument names were shortened in the same release, so the package is still willing to break itself this early.

◆ Prediction

With multiple models now held in one object and visualisation methods for them, comparison across models is the surface most likely to fill out next — the collection classes exist but the notes describe manipulation and plotting rather than any comparison metric.

S
states
INFRA · APIS
0.0

State-panel tooling holding steady since its 2020 data and ergonomics release.

◆ Current state

states supplies the Gleditsch & Ward and Correlates of War state lists and the tooling to turn them into country-year or country-month panels, with plot_missing() for coverage checks. The substantive work landed in 2020; the releases since are compatibility fixes against ggplot2, dplyr, readr and testthat. The most recent entry is a single test repair.

◆ Where it's heading

The package has reached the point where its own data and API are settled and the release trigger is upstream churn in the tidyverse. What movement there is goes toward making the two state lists interchangeable, with the microstates coding carried from G&W onto the COW data as the clearest example, rather than toward new datasets.

◆ Prediction

The next release is most likely another compatibility pass; a data refresh would be the signal that the package is active again.

Alternatives to midr and states

Other Infra & APIs 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 midr or states.

See all midr alternatives → · See all states alternatives →

Recent activity from midr and states

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

  1. 5mo agomidrMatrix responses bring multi-class and survival models in scope
  2. 7mo agomidrFirst CRAN release: MID surrogate models for black-box explanation
  3. 7mo agomidrMemory-efficient fitting for large design matrices
  4. 0y agostatesplot_missing() test fixed for the next ggplot2
  5. 2y agostatesggplot2 and dplyr deprecation cleanup
  6. 2y agostatesBundled state data stripped to plain data frames
  7. 5y agostatesMicrostate coding for COW data and state_panel() shortcuts
  8. 7y agostatesSimpler defaults for state_panel() and plot_missing()

Frequently asked questions

What is the difference between midr and states?

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

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. midr and states 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 Infra & APIs products to evaluate alongside.

What are the best alternatives to midr?

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

What are the best alternatives to states?

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