Skip to main content

Python rewrite of emmeans (estimated marginal means)

Project description

pyemmeans

pyemmeans is a Python rewrite of core emmeans workflows for estimated marginal means (EMMs), contrasts, trends, and post-hoc inference.

Install

pip install pyemmeans

Quick Start

from pyemmeans import emmeans, pairs, ref_grid

# `fit` can be a supported statsmodels model result
rg = ref_grid(fit)
emm = emmeans(rg, "treatment")
print(emm.summary())
print(pairs(emm).summary(infer=(False, True)))

Highlights

  • Core EMM APIs: ref_grid, emmeans, contrast, pairs, summary, confint, test
  • Trend and joint testing support: emtrends, joint_tests
  • Multiple weight modes in emmeans(..., weights=...)
  • Parity-oriented tests against R fixtures

Project Notes

This package is a parity-oriented Python implementation inspired by the R emmeans ecosystem.

Authorship and Attribution

  • Python rewrite author: Tuo Zhao (tourzhao@gatech.edu)
  • Original R emmeans package: developed by its R authors and contributors
  • Full attribution details are included in AUTHORS.md in the source distribution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyemmeans-0.1.0.tar.gz (56.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyemmeans-0.1.0-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

Details for the file pyemmeans-0.1.0.tar.gz.

File metadata

  • Download URL: pyemmeans-0.1.0.tar.gz
  • Upload date:
  • Size: 56.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pyemmeans-0.1.0.tar.gz
Algorithm Hash digest
SHA256 55da1ee021322f739ccbdb77fcbed258dbf5aa707ba59914355670ae50de9f91
MD5 8afdf82aec4ac29852997a5ff1ca6320
BLAKE2b-256 2ec2a5130a8a1a938e62d760360a6585973966cdb813518dfadd3ba5c0281546

See more details on using hashes here.

File details

Details for the file pyemmeans-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyemmeans-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pyemmeans-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97848a75f3093e3bc33409c781166dc78fa146282b03a00a50beac8ff6d6f97c
MD5 9a15560d71297b4dfba11c649bc49951
BLAKE2b-256 ad5e977ad99ec5ed3d14b46438dc782d2e6ccd741dbcfc1fb2c8d3f75a7fdcb9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page