RepositoryR
amices

amices/mice

Multivariate Imputation by Chained Equations

522stars
126forks
15issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: chained-equations

#1 Repository of the week

1
TINIX TRENDING·Topic: fcs

#1 Repository of the week

1
TINIX TRENDING·Topic: imputation

#1 Repository of the week

🧮 MICE: Fill Missing Data by Chained Equations

Impute mixed-type missing data without dropping incomplete rows.

The mice package implements Multivariate Imputation by Chained Equations (MICE) based on Fully Conditional Specification (FCS). For each incomplete variable it uses a separate imputation model, cycling through them to create multiple plausible replacements for missing values. Instead of a single fill, it produces multiple completed datasets so missing-data uncertainty can be accounted for in downstream analysis.

✨ Highlights

  • Fully Conditional Specification: Each incomplete variable is imputed by its own model in a chained sequence.
  • Mixed data support: Handles continuous, binary, unordered categorical, ordered categorical, and continuous two-level data.
  • Multiple imputations: Generates several completed datasets to reflect uncertainty from missing values.
  • Passive imputation: Keeps consistency between derived variables across imputations.
  • Blocks framework: Mix univariate and multivariate imputation methods by grouping variables into blocks.
  • where matrix: Specify exactly which cells should be imputed.
  • Multivariate tests: Functions like D1(), D2(), D3(), and anova() for parameter tests on multiply-imputed data.
  • Diagnostics: Tools like md.pattern() and stripplot() to inspect missing patterns and imputation quality.

💡 Why it matters

Rather than discarding incomplete cases or filling with a single naive value, mice fits the imputation to each variable's type and pools results with with() and pool() to get valid standard errors. Its FCS approach stays flexible for real data with mixed types, letting you tailor models without forcing one strict joint model for the whole dataset.


#R #MissingData #Imputation #MICE #MultipleImputation #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
WenjieDu/PyGrinder

PyGrinder: a Python toolkit for grinding data beans into the incomplete for real-world data simulation by introducing missing values with different missingness patterns, including MCAR (complete at random), MAR (at random), MNAR (not at random), sub sequence missing, and block missing

71
Nov 17, 2026
RepositoryR
SteffenMoritz/imputeTS

CRAN R Package: Time Series Missing Value Imputation

174
Aug 24, 2025
RepositoryR
mayer79/missRanger

Fast multivariate imputation by random forests.

73
Apr 6, 2025
RepositoryPython
WenjieDu/PyPOTS

A Python toolkit/library for real-world machine/deep learning & data mining on partially-observed time series, with 50+ SOTA neural network models for scientific analysis tasks (imputation, classification, clustering, forecasting, anomaly detection, cleaning) on incomplete industrial irregularly-sampled multivariate TS with NaN missing values

2.1k
Dec 1, 2026
RepositoryJupyter Notebook
WenjieDu/BrewPOTS

The tutorials for PyPOTS, guide you to model partially-observed time series datasets.

128
Aug 25, 2026
RepositoryPython
OpenIDEA-YunanUniversity/ycimpute

A missing value imputation library based on machine learning. It's implementation missForest, simple edition of MICE(R pacakge), knn, EM, etc....

107
Mar 17, 2024
RepositoryJupyter Notebook
eXascaleInfolab/ImputeGAP

ImputeGAP is a comprehensive Python library for imputation of missing values in time series data. It implements user-friendly APIs to easily visualize, analyze, and repair incomplete time series datasets.

78
Nov 28, 2026
RepositoryTypeScript
openclaw/openclaw

The AI that really does things. Any OS. Any Platform. The lobster way. 🦞

395.6k
Dec 2, 2026
Repository
jwasham/coding-interview-university

A complete computer science study plan to become a software engineer.

365.2k
Nov 7, 2026