PyMixEF 0.1 documentation

Mixed-effects modeling in Python

Specify, fit, diagnose, and preserve mixed-effects analyses with an inspectable model representation. Follow a statistical workflow, reproduce complete scientific examples, or look up the public Python API.

Start with your task

Install and start

Choose an installation profile, fit a first model, and learn the declare → validate → compile → fit → diagnose workflow.

Getting started
Choose an analysis

Map a scientific question to LMM, GLMM, MMRM, PK/ODE simulation, or a pharmacometric model declaration.

Choose an analysis
Work through examples

Ten pre-executed, assertion-backed case studies: three materials/catalysis analyses and seven biomedical/pharmaceutical workflows.

Executed tutorials
Look up an API

Task-oriented navigation plus generated, signature-level documentation for the complete public Python surface.

API reference

Analysis areas

Linear mixed models

Continuous outcomes

Gaussian ML/REML, multiple random blocks, conditional and population predictions, residual diagnostics, simulation, and reproducible results.

Linear mixed models
Generalized mixed models

Discrete outcomes

Bernoulli, binomial, Poisson, and negative-binomial-2 reference fits using the explicitly labeled first-order Laplace path.

Generalized linear mixed models
MMRM

Repeated measures

Ordered residual covariance, missing-response auditing, longitudinal contrasts, and explicitly labeled degrees-of-freedom calculations.

Mixed models for repeated measures
PK and ODE simulation

Pharmacology

Canonical dosing events, closed-form one- and two-compartment PK, event-aware ODE integration, sensitivities, and residual-error models.

Pharmacometrics
Model declarations and IR

Inspectable models

Formula and typed DSL authoring compile to a backend-neutral, immutable, schema-versioned ModelIR with deterministic semantic hashes.

Model IR and compilation
Evidence and interchange

Reproducibility

Structured convergence, diagnostics, archives, manifests, validation bundles, comparison reports, and conservative external-format compatibility reports.

Results, reporting, and provenance